hello.
I am creating a scene that selects the player character before the game starts. I created each of the 3 characters as a layer and used an event to show or hide the layer depending on the button selection. However, from button1 (arrow1), it doesn’t go to the second layer and immediately shows the third layer. How can I fix this, and is there another way to handle events instead of this method?
Are the 3 player characters are placed in the same position? And same for the buttons?
In which case, both arrow1 and arrow3 are clicked at the same time. Although the layer is hidden, the objects are still there and can be interacted with; they’re just not displayed.
I’d suggest you try the following - it should work but it’s untested:
- for each arrow button event, add the condition that the layer it is on is visible.
- swap the events for the arrow1 and arrow3 buttons. This way when arrow1 is clicked it doesn’t show hoya layer and fire off the arrow3 is clicked event.
“swap the events for the arrow1 and arrow3 buttons”
I don’t understand this. Is it reordering the events?
Are you swapping events with each other while leaving the condition alone?
Yes, so you process the arrow3 click and actions first, and then arrow1 click and action. So literally click and drag the event boxes around.
1 Like
Nice, well implemented. Thank you.