This is what I have. it still triggers the level to reload even though the switch’s light is off. that is what the second switch leads to, a level reload. Also, I know I do not need the ten.
PS the strings in the behoviors don’t light up on your second run through the game.
I don’t see how the AND gate would turn on,
if the inputs are NOR and Prox, then only A or B would be on at a time.
I personally try my best to not use gates, they are super finicky since they work on instances instead of frames. Could you send a link to the game to better see what is going on?
This is happening because when the game reloads, new objects are loaded so you’re not looking at the same objects code. If you want to see code running for all of those objects, select the object in the library.
So what’s happening here that the both switches are on for ALL lily pad objects. You can see this by pressing space and waiting 2 seconds (whats set in the bottom left timer). If you look at the code for just the block that is hitting the prox target, the NOR is off for that one lily pad object.
You are using raycast to last object correctly, I just didn’t notice it before. But the problem is that the raycast doesn’t see the lily pad when the lily pad is on top of the “human” object.