Go Back   The PokéCommunity Forums > Create & Discover > Game Development > Pokémon Essentials
Reload this Page How to freeze temporarely the player's movement?

For all updates, view the main page.

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Thread Tools
Old January 7th, 2014 (2:42 PM).
Alesteir Alesteir is offline
Join Date: Oct 2013
Gender: Male
Posts: 60

It may seem like a silly question but I can't seem to figure an easy way for it.

When it's an autorun event it's not a problem as the player movements are freezed but recently I had to use parallel events as autorun was not okay in those cases and as I press the key arrows (needed during the Parallel process to do other things) the player beneath moves together with it.

I tried various options in move route (all of them, from direction fix, to stopping the animation), I even tried to use the move route in script form as I thought it was weird the player could move with direction fix ON (but I suppose it only locks the direction but can still move).

Is there a workaround I didn't think or anything I missed to easily accomplish the temporary player's movement freeze?

Reply With Quote

Relevant Advertising!

Old January 7th, 2014 (3:38 PM).
Stochastic's Avatar
Stochastic Stochastic is offline
Join Date: Dec 2013
Gender: Male
Posts: 112

There could be a better way of doing this depending on the exact context, but here's how you could do it.

Search for "def update" in script Walk_Run and add a new line after "def update",

return if $game_switches[69]

Now when switch 69 is ON, the player will not move. You can change the number of the switch if you like.
Hope this helps!


Reply With Quote
Old January 7th, 2014 (3:45 PM).
Alesteir Alesteir is offline
Join Date: Oct 2013
Gender: Male
Posts: 60

It worked perfectly :D Thanks a lot!

Reply With Quote
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 4:09 AM.