reset scene\game

haim96haim96 Member Posts: 87
edited November -1 in Working with GS (Mac)
hi,

my game have few scenes: menu, game, game over screen, help screen etc
when i moved to game over scene and then to menu and press play again the game
doesn't reset and continue from previews state.
i tried reset scene and reset game but it seems that attributes does't reset.

any ideas?

thanks!

Comments

  • chosenonestudioschosenonestudios Member Posts: 1,714
    you have to manually reset the attributes

    so when touch is pressed change attribute "blankety blankety" to 0

    you'll have to do this for all of your attributes that change...

    Good Luck!

    -Will
  • haim96haim96 Member Posts: 87
    and another issue...
    i have a background that runs in loop to simulate endless background
    when he get to some point in the screen he spawn new image and destroy the old when outside the screen. work fine on the editor.
    i created the game for iphone (in develop mode)
    and it doesn't work, the first background disappear from the screen without spawn new image.

    any idea for this?

    thanks...again...

    editor 0.8.7... by the way...
  • haim96haim96 Member Posts: 87
    thanks chosenonestudios! .... but this is suck! :(
    i hope they will fix this.
  • chosenonestudioschosenonestudios Member Posts: 1,714
    haim96 said:
    and another issue...
    i have a background that runs in loop to simulate endless background
    when he get to some point in the screen he spawn new image and destroy the old when outside the screen. work fine on the editor.
    i created the game for iphone (in develop mode)
    and it doesn't work, the first background disappear from the screen without spawn new image.

    any idea for this?

    thanks...again...

    editor 0.8.7... by the way...

    Not sure what the problem is, but instead of spawning and deleting you should just have two actors, same image, and just loop them over and over again.. Theres a demo on this somewhere I'll see if I can find it...
    haim96 said:
    thanks chosenonestudios! .... but this is suck! :(
    i hope they will fix this.

    This isn't a bug haha this is just something you have to do...

    Good Luck!

    -Will
  • haim96haim96 Member Posts: 87
    or they can add a built in function to reset attributes
    :)

    thanks for the help!
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Yep, no prob :D
Sign In or Register to comment.