Event Problems

Hiya fellow game devs...

Spoiler: What is happening
ezgif-1-bad7f5e3c966.gif


Spoiler: What is supposed to happen
giphy.gif

Spoiler: Event Code
Conditions: Switch 001
Trigger: Parallel
-----------------------
◆If:Button
is pressed down
◆Get Location Info:blockade, Terrain Tag, ({PlayerX},{PlayerY})
◆Plugin Command:CopyTiles 1 1 'layout' $gameVariables.value(6)+2 1 $gameVariables.value(6)+18 11
◆If:Script:$gameVariables.value(2)==16
◆Control Variables:#0005 mapid = 1
◆Transfer Player:{mapid} ({PlayerX},{PlayerY}) (Fade: None)
◆Control Variables:#0006 2dsteps += 1
◆
:Else
◆Control Variables:#0005 mapid = 1
◆Control Variables:#0004 test = $gameVariables.value(2)+1
◆Transfer Player:{mapid} ({test},{PlayerY}) (Fade: None)
◆Control Variables:#0006 2dsteps += 1
◆
:End
◆If:blockade = 3
◆Control Variables:#0005 mapid = 1
◆Control Variables:#0004 test = $gameVariables.value(2)-1
◆Transfer Player:{mapid} ({test},{PlayerY}) (Fade: None)
◆Control Variables:#0006 2dsteps -= 1
◆
:End
◆
:Else
◆If:Button
is pressed down
◆Get Location Info:blockade, Terrain Tag, ({PlayerX},{PlayerY})
◆Plugin Command:CopyTiles 1 1 'layout' $gameVariables.value(6)+2 1 $gameVariables.value(6)+18 11
◆If:Script:$gameVariables.value(2)==1
◆Control Variables:#0005 mapid = 1
◆Transfer Player:{mapid} ({PlayerX},{PlayerY}) (Fade: None)
◆Control Variables:#0006 2dsteps -= 1
◆
:Else
◆Control Variables:#0005 mapid = 1
◆Control Variables:#0004 test = $gameVariables.value(2)-1
◆Transfer Player:{mapid} ({test},{PlayerY}) (Fade: None)
◆Control Variables:#0006 2dsteps -= 1
◆
:End
◆If:blockade = 3
◆Control Variables:#0005 mapid = 1
◆Control Variables:#0004 test = $gameVariables.value(2)+1
◆Transfer Player:{mapid} ({test},{PlayerY}) (Fade: None)
◆Control Variables:#0006 2dsteps += 1
◆
:End
◆
:End
◆
:End
◆Script:mv3d.needClearMap=true;


​
​
Hi there!
I don't know how to solve it, but you should tell on the post that you are using plugins in your event, and put the link for people to be able to help.

◆Plugin Command:CopyTiles 1 1 'layout' $gameVariables.value(6)+2 1 $gameVariables.value(6)+18 11
◆Script:mv3d.needClearMap=true;
additionally, please give screenshots of your event pages.
there is a lot of info missing from the texted code, like which buttons are supposed to be pressed, how the sublevels go (usually visible by the indentions of the conditional branch and similar commands) and so on.

and which map are the events on? you have several transfer player, and that command works different depending on a transfer inside a map and to a different map
The transfer is to the same map and the buttons pressed are left + right

Original thread: https://forums.rpgmakerweb.com/threads/event-problems.136652/