Switches and locked doors in platform game

Post Reply
User avatar
baardbi
Posts: 36
Joined: Sun Jul 07, 2019 2:28 pm
Location: Norge

Switches and locked doors in platform game

Post by baardbi » Sun Jan 12, 2020 5:24 pm

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?
Post Reply