I’ve gotten my app to a point where I give an option to start a new game on a game over. Upon the storyboard.gotoScene(), my objects aren’t reinitializing. What is the correct way to go about coding this kind of situation?
Do you remove your objects when your game ends? Do you nil them? Can you post so code so we can see what your trying to do?.
–SonicX278
If you’re using storyboard, check out this tutorial: https://coronalabs.com/blog/2013/08/20/tutorial-reloading-storyboard-scenes/
If you’re using Composer, the principles apply, but you would have to adapt the code for Composer.
Rob
Going to check this out, based on the title, it is exactly what I need! Thank you.
May I ask why your still using storyboard?
–SonicX278
For whatever reason I experienced errors and odd behavior of composer that disallowed me to even run my app. This occurred in current and various past versions of Corona. I have gotten used to getting along without it.
This did end up answering a lot of my questions Rob, thank you! I will definitely be closely referencing this video as I sort out scene transitions in my app! (PS: I see you specifically have been answering a lot of my questions as I learn and I want to say thank you of your support!)
Quite welcome!
Do you remove your objects when your game ends? Do you nil them? Can you post so code so we can see what your trying to do?.
–SonicX278
If you’re using storyboard, check out this tutorial: https://coronalabs.com/blog/2013/08/20/tutorial-reloading-storyboard-scenes/
If you’re using Composer, the principles apply, but you would have to adapt the code for Composer.
Rob
Going to check this out, based on the title, it is exactly what I need! Thank you.
May I ask why your still using storyboard?
–SonicX278
For whatever reason I experienced errors and odd behavior of composer that disallowed me to even run my app. This occurred in current and various past versions of Corona. I have gotten used to getting along without it.
This did end up answering a lot of my questions Rob, thank you! I will definitely be closely referencing this video as I sort out scene transitions in my app! (PS: I see you specifically have been answering a lot of my questions as I learn and I want to say thank you of your support!)
Quite welcome!