Hey guys,
so my question is simple, im pretty sure its possible to do. In my game, depending on what level im on, i have a variable that is set to the number level. In my game logic file, i then am trying to get information from a global variable using the variable that holds the level number as well. I am trying to figure out the correct syntax to do this, here is what im currently doing.
[lua]–In a file named “global” i have
level0time = 0
level1time = 0
–And so forth
–Now in my game logic file…
levelNumber = 1 --For this example
levelTime = global.level…levelNumber…time --This is where i am in trouble[/lua]
can anyone shed some light on the correct way to do what im trying to do here?
thanks [import]uid: 19620 topic_id: 20367 reply_id: 320367[/import]