Make something activate after interacting a certain amount of times

so im making a horror game and i want the player to interact with an object idk say 10 times before it allows the player to go to the secret level if that makes sense what code would that be ide preferr pictures as i do better visually but beggars cant be choosers yk! thank you!

1 Like

Welcome to the community. Make it so that way it tracks all of the times the player has clicked something (I would use globals) then after that it does something for them

So it’d be like

Click -> Number (+) -> Global (get & set) -> Filter if equal or greater than 10 (in) -> Whatever you want it to do 

I didn’t make code for it but this should help please don’t press copy this isn’t actual behavior code this is just a visual of what it should be

1 Like

@gazimon i might have your solution

1 Like

ill try it out thank you!!!

Your welcome

1 Like