Switch Problem

Hello.


With my game, you go to a room full of switches... (not the [0050:whatever] = ON but ones with actual sprites.


When you click on the switch it teleports you to the room and then when you go back, it just teleports you straight back to the room you were first teleported to.


What it was supposed to do was when you teleport, it was supposed to turn off or reset.


The code (and I legitimately typed it myself)


PAGE 1:


@ >Control Switches: [0050:youreset] = ON


@ >Control Self Switch A =ON


@ >Play SE: 'Switch3' , (80, 100)


PAGE 2:


@ >Conditional Branch: Self Switch A == ON


     @ >Transfer Player:[039:Fredbear's] (006, 004)


:Branch End


@ >Conditional Branch:Switch [050: you reset] == ON


     @ >Control Switches: [0050:youreset] = OFF


     @ >Control Self Switch: A = OFF


     @ >Play SE: 'Switch3' , (80, 100)


Also how do you make those game pictures in your personal message thingy that shows when ever you post?


AND THE CODE IS WORD FOR WORD
Please use screenshots rather than typing all your commands out, and use FULL window images, not just cropped to the list of commands.


Because the important thing that's causing this issue is NOT in the list of commands.


My guess is that you have the second page set to autorun or parallel process.


The way you have designed it is not good.  And I'm not really fond of the switch names either - there's no need for that.  On tab 1, play the SE, turn on self switch A, and transfer the player.  On tab 2, play the SE and turn off self switch A.  Those are the only commands you need.  Turn the (global) switch on/off as well only if you're going to have other things conditioned by it.  If you're not, the self switch is sufficient.
Screenshots so you can give a confirmed answer

kil.PNG

2.PNG
yes, and it's the reason I said.  Change them so they only contain the commands I gave you, set page 2 to action button, and it will all work.
Okay. Now how do you make those Hyperlink photos in your message thingy that shows whenever you post
that's your signature.  Set it up in your profile.

Original thread: https://forums.rpgmakerweb.com/threads/switch-problem.62447/