One of the games I’m working on involves the use of a key, which once you pickup, you take it to the lock and open it. That’s how you win the level. My question is, how would I make this happen?
My guess is to put a playerHasKey = 0 counter on my player, and when then player collides with the key, changes the counter to 1. For the lock, it will check if the value is 1 before it opens. Does that sound about right?