Question by
NBmunro64 · Mar 20, 2017 at 09:29 PM ·
button trigger events
How Do I Make my door in my game work how I want?
So in my game when a player presses a button it simulates a door opening and closing and when the button is clicked by the player the door opens and closes depending on its previous state. I would like to know how I would code the game to make it so when the button is clicked it sees if the door is closed or opened and then change it so it becomes the opposite and then changes the text of the button to fit to either show the player to close or open the door? I would also like to know how I would make the nodes in the game that the sprites use to move around the map will not go into the office if the door is closed? Thank you
Comment
Your answer