Reset Scene Not Working properly

skippyskippy Member Posts: 106
edited November -1 in Working with GS (Mac)
If i start my game change some settings then hit play all is fine the first time. Then when i die it takes me back to the start scene (normal for my game) so you can change some more settings etc then when i hit play again i die instantly as if the health didn't reset and therefore killing you immediately. I used to have reset game and it used to work but it would reset all the scenes including settings so then you would have to set them all again. Why doesn't reset scene work in reset game's place? I just want the main scene to reset when you go to play again.

Comments

  • thegwillthegwill Member Posts: 31
    Maybe your health is a game attribute in which case it won't be reset.
  • scorelessmusicscorelessmusic Member Posts: 565
    The other thing that I do (workaround) is to manually reset the attribute(s) just before calling the reset scene behavior.
  • EminemEminem Member Posts: 667
    When u want to reset the scene and have lives , try this

    W
    Drag a change attribute behavior in with the reset scene and then choose ur attribute for the lives and in the too put 3 or waterer lives u gave ur character

    Hope this helps
  • skippyskippy Member Posts: 106
    Thanks for the reply thegwill, so do i need to make an attribute in the health actor itself and it will reset then is that correct?

    Edit, ok thanks guys let me try a couple of things suggested :)
  • thegwillthegwill Member Posts: 31
    I think it will still need to be a game attribute (otherwise you'll have trouble referring to it) but you will need to initialise it when you start your new game.
  • skippyskippy Member Posts: 106
    Thanks a lot guys got it sorted with your help, with the reset scene i had to add 3 change attributes relevant to the lives, health etc and now every time i hit play again it all loads properly.
    Cheers
Sign In or Register to comment.