Hi there guys, im kinda new in the world of the game creation. And I have a little problem with a game I'm making:
In the room A, I've got 2 doors, that send me to the room 1 and 2. I would like to know how to make a change in the room A, from the room 1 (when level 1 ends, door of level 2 opens - its in the room A)
thanks a lot.
Need some help with variables
Started by sachonski, Jul 29 2012 09:10 AM
2 replies to this topic
#1
Posted 29 July 2012 - 09:10 AM
#2
Posted 29 July 2012 - 06:21 PM
YoYou can make a global variable that tracks if the door is locked (0) or unlocked (1). You'll need either a bunch of global variables for each door in the game that has this attribute or use a global array (with each index pertaining to a specific door). If you have "levels" that can't be accessed later, you can limit the global variables/array to just the doors on one level and recycle the variables for the later levels.
#3
Posted 29 July 2012 - 11:47 PM
great. that really helps. Ill try it
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











