Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

fixed

A topic by Jellogramming created Feb 16, 2021 Views: 133 Replies: 3
Viewing posts 1 to 2
Submitted

So in my game, you need to activate a few switches to open a door to the next level. I'm a complete beginner, so I have no idea how to do this. Does anyone know how I could do this?

(1 edit)

I'm not sure if this is the best way to do it, but you could have all of the switches as separate objects, and when they are activated, they use SendMessage to run a function on the door. That function could change a bool to true for a switch, and when all are equal to true, the door could open.

Edit: hope this helps! I'm also a beginner

Submitted

Thanks! I have it working now.

Submitted

Had no idea this existed! this could be useful...