Switches and locked doors in platform game

baardbi

Well-known member
I would like to make a few switches in my platform game. When all three switches (in different screens) are flipped, a door opens on another screen. I have made two tiles for the switches (one flipped and one unflipped). I have also made a user variable called switchesFlipped where I plan to count how many switches have been flipped. I need help on how I am going to implement the tiles so that they trigger when the player touches them. And also how do I trigger the locked/unlocked door? Can someone give me some pointers on how I can accomplish this?
 
Top Bottom