I solved my original problem, and didn't feel like wasting a thread. Now I have a very strange problem.
After getting a game over, a new scene appears with a button to the main menu. While on the main menu, if you press the play button again it calls exitScene and then calls enterScene twice. :/
1 2 3 4 5 6 7 8 9 10 11 12 13 | Windows simulator build date: Dec 9 2011 @ 14:01:29 Copyright (C) 2009-2011 A n s c a , I n c . Version: 2.0.0 Build: 2011.704 Scene Created! Scene Entered! Scene Exited! -- Game Over Screen Starts Here Scene Exited! -- Re-entering Game From Main Menu Starts Here WARNING: timer.pause( timerId ) ignored b/c timerId is already paused. Scene Entered! Scene Entered! |
Off the top of my head, if it's a proper global declared as "_G.money" you don't need to refer to it as sceneGame.money - local money = money will do.
I solved my original problem of not being able to access a variable through storyboard, but not I get the problem found in the first post. :/
Anyone know?