Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: zuhane on April 08, 2010, 11:10:40 AM

Title: Dodgy Dodging System
Post by: zuhane on April 08, 2010, 11:10:40 AM
Hello! Without revealing too much about what's happening, I will do anyway. Basically, I've made a completely custom battle system, and want it so that at the
very second before your character is attacked, either up, down, left or right will flash up. If they can quickly press this key at the climax of the enemy
attack, they will completely dodge the incoming attack. If they fail to press anything, or press the wrong key, they're hit by the incoming attack. However,
while this is what I want to happen, this is not what is actually happening. I've got some code, and want it so that the key input processing is registered at
any time and stored in a variable, so that a conditional branch can decide whether you pressed the correct key or not. So, here's my code:

This first picture is a parallel common event triggered by the climax of the enemy attack, the pictures that would be shown represent different arrows:
(http://i302.photobucket.com/albums/nn111/zuhane/Screen1.jpg)

This second image is a parallel event occurring in the same map as the battle. Activated by the same switch that does the common event.
(http://i302.photobucket.com/albums/nn111/zuhane/Screen2.jpg)



Any help *Cough* Purple Mage *Cough* *Cough* would be TREMENDOUSLY APPRECIATED!

Thank you!
Title: Re: Dodgy Dodging System
Post by: zuhane on April 09, 2010, 02:52:02 PM
Shameless bump... :(

EDIT: You must help quickly! I think I've made an easily-editable Paper Mario-esque engine for people to use!
Title: Re: Dodgy Dodging System
Post by: zuhane on April 13, 2010, 01:41:46 PM
Bump again! Won't someone help a damsel in distress?
Title: Re: Dodgy Dodging System
Post by: zuhane on April 17, 2010, 12:25:50 PM
It's just a simple bit of coding. Someone must be able to help! :p
Title: Re: Dodgy Dodging System
Post by: Prpl_Mage on April 17, 2010, 07:58:56 PM
As I seem to miss you on msn all the time.

What exactly is the problem?