Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • How to make your hero stop running when attack button is pressed?
« previous next »
  • Print
Pages: [1]

Author Topic: How to make your hero stop running when attack button is pressed?  (Read 2252 times)

Offline Thunderstrike

  • Member
  • Initiate
  • *
  • Posts: 10
How to make your hero stop running when attack button is pressed?
« 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
Logged

Offline Linkizcool

  • Doesn't exist for official purposes.
  • Exemplar
  • *
  • Posts: 1,290
  • I am Canadian.
(No subject)
« Reply #1 on: August 27, 2006, 08:20:03 PM »
Can we see your coding?
Logged

Offline DragonBlaze

  • A Wild DB Appeared!
  • Royal
  • *
  • Posts: 3,329
(No subject)
« Reply #2 on: August 27, 2006, 08:25:19 PM »
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.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN

Offline Thunderstrike

  • Member
  • Initiate
  • *
  • Posts: 10
(No subject)
« Reply #3 on: August 27, 2006, 08:28:28 PM »
http://img100.imageshack.us/img100/3922/shishkalbajjz1.th.gif
I would like the character to press spacebar, stop runing/walking to attack

do you get what I mean?
Logged

Offline Ruler of the Dark

  • DISTRACTION!!
  • Acolyte
  • *
  • Posts: 448
(No subject)
« Reply #4 on: August 27, 2006, 08:51:36 PM »
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.
Logged

Offline Thunderstrike

  • Member
  • Initiate
  • *
  • Posts: 10
(No subject)
« Reply #5 on: August 27, 2006, 09:01:20 PM »
Thanks!
It worked flawlessly!

I'm glad you were here to help me!!! :D
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • How to make your hero stop running when attack button is pressed?
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum