Problem with level not reloading properly
Hi everyone!
I'm working on my game for three weeks now.
The levels I'm having trouble with are the cannon shoot ones.
Everything works like a charm, physics-wise and such. The problem I'm having is that I've implemented a "reload button+level selection button" that appear when the player shoots all the cannon balls (like in angry birds and such). If you click the reload level, the level reloads. If you click the level selection, you go to the level selection menu. The problem is that when you click in the level you were before (in the level selection menu) you go back to the correspondent scene, but it doesn't reload again, it plays from where you were before. I wanted it to reload from scratch!
Is there a way? I'm killing my head here!
Thanks.
I'm working on my game for three weeks now.
The levels I'm having trouble with are the cannon shoot ones.
Everything works like a charm, physics-wise and such. The problem I'm having is that I've implemented a "reload button+level selection button" that appear when the player shoots all the cannon balls (like in angry birds and such). If you click the reload level, the level reloads. If you click the level selection, you go to the level selection menu. The problem is that when you click in the level you were before (in the level selection menu) you go back to the correspondent scene, but it doesn't reload again, it plays from where you were before. I wanted it to reload from scratch!
Is there a way? I'm killing my head here!
Thanks.
Comments
That's sounding a bit odd; presumably you're using Reset Scene Behavior to reload a level; and Change Scene from your level selection menu.
THe only thing I can think of which is affecting the previous level select is that your attributes aren't resetting; possibly you'll have to reset them at the beginning of each levee (although I've found with Reset Scene I've never had to).
----------------------------------------------------------------------------
iPad app: End of the Earth –•– http://davidgriffinapps.co.uk/
----------------------------------------------------------------------------
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
For level selection, the Change Level behaviour you use is fine as it's always without problems, in the main. :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps