Defining a Global in my main.lua file:
\_G["Level"] = 1
\_G["levelSeries"] = 2
Then I edit this in my level select module: (which works)
Level = event.target.tag
print("current level == " .. Level)
Then use this edited information in my game logic file:
print("Level")
Can anyone tell me why Level is printed as 1?
Why is this happening and how do I get around it?
Thanks,
Lewis.
[import]uid: 87611 topic_id: 14505 reply_id: 314505[/import]
[import]uid: 52491 topic_id: 14505 reply_id: 53728[/import]