![]() The number shall increase now when the player clicks on the lock. For that we need an area to be able to click on. Create a new dummy object with a size of 180x180 and place it right over the lock. For the next part you need to know about number variables in the game. These are numbers that can be queried, added or subtracted and they highly increase our possibilities. Number variables will NOT be predefined in the editor (like booleans), so we have to reset them in the game. By entering the room "safe" we will reset a number now. |