Hi, I'm trying to make a button puzzle where standing on the correct buttons will clear the obstacles and allow you to progress. Moving off of the button will deactivate the switch. I started by making one of the buttons, however it doesn't work properly. While stepping on it the first time will make it work as intended, stepping off of it will not immediately trigger the deactivation event. I'm not sure what the problem could be here, so maybe someone here can help me.
I attached the code I have for this button (I plan to make an original sprite later). Since there are multiple buttons you have to press (basically, the idea is each party member has to stand on a button, you can decide where they stand by pressing the action button when on the button), and this puzzle will appear in multiple rooms, I thought making the coordinates of the button a variable would save time. On second thought, though, I figure I would have to manually set each coordinate to the event location to prevent conflicts, so I do plan to change that. But I want to see what everyone else has to say.
I attached the code I have for this button (I plan to make an original sprite later). Since there are multiple buttons you have to press (basically, the idea is each party member has to stand on a button, you can decide where they stand by pressing the action button when on the button), and this puzzle will appear in multiple rooms, I thought making the coordinates of the button a variable would save time. On second thought, though, I figure I would have to manually set each coordinate to the event location to prevent conflicts, so I do plan to change that. But I want to see what everyone else has to say.