The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

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.

Reply
 
Thread Tools
  #1    
Old January 7th, 2014 (02:42 PM).
Alesteir
 
Join Date: Oct 2013
Gender: Male
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
  #2    
Old January 7th, 2014 (03:38 PM).
Stochastic's Avatar
Stochastic
 
Join Date: Dec 2013
Gender: Male
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
  #3    
Old January 7th, 2014 (03:45 PM).
Alesteir
 
Join Date: Oct 2013
Gender: Male
It worked perfectly :D Thanks a lot!
Reply With Quote
Reply
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:58 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.