Reset problem

studiocritystudiocrity Member Posts: 14
edited November -1 in Working with GS (Mac)
hi, me and my friend have found a problem with the game we are developing. we have a pause and a reset button in the game and they work fine, but when you die once and press 'play again' the pause button and reset button stop functioning and the character no longer dies.
can anybody help?? :L
thanks!!

Comments

  • MeinMilchKaffeeMeinMilchKaffee Member, PRO Posts: 114
    You have a life attribute or something like this, right ?
    to reset you need to do this..
    if touch is inside
    -------change "life" to "3( or how many lives you have/ or true if its a boolean)
    -------timer after 0.1 sec
    ---------------reset scene

    cheers
  • RumiRumi Member, PRO Posts: 343
    Woah MeinMichKafee, thats a wicked profile pic
    :)
  • studiocritystudiocrity Member Posts: 14
    Hey thanks for the advice but because the scene was changing to a death scene it was resetting the death scene and not the game scene so we have solved that by spawning the death scene in to the game scene, which worked perfectly. However, after a short time the reset button stopped spawning and only the background of the death scene spawned, though i don't think i changed anything

    this is the death scene spawning sequence

    if game.dead is true
    [
    spawn DeathBG in front of layer position relative to scene
    spawn Replay Button in front of layer position relative to scene
    spawn Score in front of layer position relative to scene
    ]
Sign In or Register to comment.