The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: YachiYan on March 15, 2007, 02:21:53 AM

Title: A small question. [RESOLVED]
Post by: YachiYan on March 15, 2007, 02:21:53 AM
Now, I'm reasonably good at everything event-switch-and-variable-related in RPG XP...all that doesn't involve scripting. But I'm at a loss of how to do this:

I need to have an event on parallel process that forces the player to move forward at a constant rate. However, I want people to be able to move the player left and right (so as to dodge obstacles on the map as they speed forward). I've tried every eventing trick in the bag to make this happen, but it seems you just can't force your character to move when an event command is already moving them.

Is there a scripting trick to this? Some variable I can change to make it possible to move the player when it's already moving? Any response would be greatly appreciated. Thanks!

EDIT: I...should probably mention that I'm already using the eight-direction script.
Title: Re: A small question.
Post by: italianstal1ion on March 15, 2007, 08:42:47 PM
lets see...im not sure if events can do this, but you could have a conditional branch kinda set up. Like, move player forwaard, if INPUT::LEFT move player one square left, then loop back to moving forward.
Title: Re: A small question.
Post by: YachiYan on March 16, 2007, 12:35:35 AM
lets see...im not sure if events can do this, but you could have a conditional branch kinda set up. Like, move player forwaard, if INPUT::LEFT move player one square left, then loop back to moving forward.

Ahaha...yes, I never thought of that. And here I was certain I'd tried everything and would have to resort to scripting...hehe, thanks! Only, I didn't have to loop it, just get it running on parallel process to move a certain number of tiles. Thanks again!!