Hiyas!
I have the game set up with :
MainMenu
Game
When I start the app, it works fine. Then I hit START and the Game starts.
I play the game fine and when I get GameOver I have a button to hit to go back to MainMenu. Now, to start a new game, I hit START again.
Here’s where it goes weird…
Physics stop working properly.
Transitions don’t fire.
Objects which interact with each other don’t.
Functions don’t fire when they are supposed to.
It works 100% when I play the game the first time, but going to menu and back into the game screws it all up with errors about unable to PLAY animations which are NIL, Unable to do transitions, Collisions giving errors.
It says values cannot be accessed as they are NIL, but these are all created again when the game starts again.
attempt to index upvalue ‘gameObject’ (a nil value)
attempt to index upvalue ‘mainGroup’ (a nil value)
mainGroup DOES exist! It gets re-created when the game restarts.
Any ideas?
Thanks.
I’m using Director, btw, so it should clean up stuff. I even have cleanup() functions. [import]uid: 10389 topic_id: 22427 reply_id: 322427[/import]