Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Thunderstrike on August 27, 2006, 08:07:54 PM
-
Hello all, I'm new to this forum, but experianced in RPGMaker
I need your help!
I'm using an Action Battle System, and when the character attacks, I need him to stop running while attacking! I do not know how to do this.
Example- Character is running, then he presses spacebar and stops running and attacks.
Instead of- Character is running, then he presses spacebar and swings while he is running
Please help, muchly appreciated
-Thunderstrike :D
-
Can we see your coding?
-
Chances are that you are using the 'change event graphic' command in the 'move event' option to attack. Any command from the move event option will halt the movement of the target event.
So, there are a few things you can do. One way would be to check to see if the character is running when the attack button is pressed, if so, instead of just changing the graphic, move forward as well. You could play a battle animation of the hero attacking instead of changing the graphics. There are other things you can do as well.
-
(http://img100.imageshack.us/my.php?image=shishkalbajjz1.gif)
I would like the character to press spacebar, stop runing/walking to attack
do you get what I mean?
-
Whe you want them to stop, make a 'move event' command. Make it target the hero, and check 'repeat'. Now only put a wait command.
Then, at the end of the coding (where you will allow them to move again), put another 'move event' command. This time though, uncheck 'repeat' and put no commands in it. Make sure it's still set to hero.
-
Thanks!
It worked flawlessly!
I'm glad you were here to help me!!! :D