Hello everyone. I'm trying to solve a problem with moving player across a bunch of events (see image). Each event changes players size (zoom plugin). There is no problem when moving with keyboard, but when I try to move with mouse (click on destination on map) it stops on each event and don't move until I click again. Does anyone have any solution?
Prevent player stop when touching an event (mouse movement only)
RPG Maker MZ SupportI'm not sure why you are using events to change player size, it seem to me it would be much more usefull to use regionID
Create a parrallel event on that map that detects on what regionID your player is
Simply create a conditionnal branch based on RegionID
You might want to keep track of the actual Zoom level (if you want the player to shrink again), you can do this using a variable
If you don't want to use scripts, you can achieve the same result using the
You can then store this data in a variable, and build your conditionnal branch the same way as above, but instead you can use the variable value in the conditionnal branch.
Create a parrallel event on that map that detects on what regionID your player is
Simply create a conditionnal branch based on RegionID
Code:
♦ If : Script : $gameMap.regionId($gamePlayer.x, $gamePlayer.y) === 1
♦ Zoom...
♦ End
♦ If : Script : $gameMap.regionId($gamePlayer.x, $gamePlayer.y) === 2
♦ Zoom...
♦ End
Etc...
You might want to keep track of the actual Zoom level (if you want the player to shrink again), you can do this using a variable
Code:
♦ If : Script : $gameMap.regionId($gamePlayer.x, $gamePlayer.y) === 1
♦ Zoom...
♦ Control Variables : #0001 Zoom lvl = 1
♦ End
♦ If : Script : $gameMap.regionId($gamePlayer.x, $gamePlayer.y) === 2
♦ Zoom...
♦ Control Variables : #0001 Zoom lvl = 2
♦ End
Etc...
If you don't want to use scripts, you can achieve the same result using the
Flow Control option and Get Location Info, select Info Type to be Region ID and Location to Player.You can then store this data in a variable, and build your conditionnal branch the same way as above, but instead you can use the variable value in the conditionnal branch.
This might be of some help:
forums.rpgmakerweb.com
Event touch below characters
Hello everybody I use RPG Maker MZ and I have a question about "event touch". When I place an event on the ground (event touch & below characters) just to turn on some (hidden) switch when the player passes this event, the movement of the character is interrupted. This does not happen when the...
forums.rpgmakerweb.com
It is a bug of touch input.
Because the map is updated before the player so any event the player triggers on the move prevent him from moving (because Game_Player.canMove always returns false when a map interpreter is running).
Because the map is updated before the player so any event the player triggers on the move prevent him from moving (because Game_Player.canMove always returns false when a map interpreter is running).
Thank you very much for great advice. It works very well!
Thank you!
Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/prevent-player-stop-when-touching-an-event-mouse-movement-only.170825/