Problem with level not reloading properly

alimpo83alimpo83 Member Posts: 188
edited February 2012 in Working with GS (Mac)
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.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Hi @alimpo83

    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

  • alimpo83alimpo83 Member Posts: 188
    Thanks for the fast answer. I'm using "change scene" for the reload button. Before I was using the "reset scene" command. For the level selection I am using the change "scene command" too. Is there a more effective way?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    I'm thinking that it'd be better to stick with Reset Scene to restart the same scene as your on, as this seems to reset the attributes as well - for me though; others have reported that it doesn't.... (For certain, scene and self attributes should be fine to start at their original value, providing you're not using any Load Behaviors at the beginning of each level).

    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

Sign In or Register to comment.