I'm wanting to make a minigame where the player goes through a maze in perpetual motion. Basically, if they hit the walls they get respawned. Is there a plugin out there to activate perpetual player motion?
Nonstop Player Movement?
JS Plugin RequestsJust brainstorming here but the solution might be to move the map, not the player.
*bump*
Try this. There are 3 variables: PlayerX, PlayerY and Region ID. They should be pretty self explanatory. Recreate the following parallel process to run on your map. I used Region 97 for tiles that you don't "slide" on and Region 66 for tiles next to all of the walls that will call a Common Event that plays a crash animation and then resets you back to start.
Code:
◆Control Variables:#0002 PlayerX = Map X of Player
◆Control Variables:#0003 PlayerY = Map Y of Player
◆Get Location Info:Region ID, Region ID, ({PlayerX},{PlayerY})
◆If:Region ID ≠ 97
◆Loop
◆If:Button [Up] is pressed down
◆Set Movement Route:Player (Skip, Wait)
: :◇Turn Up
◆
:End
◆If:Button [Down] is pressed down
◆Set Movement Route:Player (Skip, Wait)
: :◇Turn Down
◆
:End
◆If:Button [Left] is pressed down
◆Set Movement Route:Player (Skip, Wait)
: :◇Turn Left
◆
:End
◆If:Button [Right] is pressed down
◆Set Movement Route:Player (Skip, Wait)
: :◇Turn Right
◆
:End
◆Set Movement Route:Player (Skip, Wait)
: :◇Walking Animation OFF
: :◇1 Step Forward
◆Control Variables:#0002 PlayerX = Map X of Player
◆Control Variables:#0003 PlayerY = Map Y of Player
◆Get Location Info:Region ID, Region ID, ({PlayerX},{PlayerY})
◆If:Region ID = 66
◆Common Event:Crash
◆
:End
◆If:Region ID = 97
◆Break Loop
◆
:End
◆
:Repeat Above
◆
:End
◆Wait:15 frames
Thanks! This worked perfectly.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/nonstop-player-movement.83471/