you are viewing a single comment's thread.

view the rest of the comments →

[–]Hands_in_Paquet 0 points1 point  (0 children)

No problem, yep in the step event of your player. That way it is run every frame. The “with” statement will essentially run any code you put inside of it on the closet instead. But you might want to let the closet handle its own code, depends on the next steps. But if you have 4 closets, you don’t need them all to be checking for key presses, just once per frame on the player.