Save Actor Health

jeancrast2jeancrast2 Member Posts: 12
edited November -1 in Working with GS (Mac)
I an attribute called MainLife for the main character....and it decrease by 1 each time he gets hit by bullets...the attribute is 50.... When I reset the game he doesn't appear, after he dies...I have to reset the game from the beginning...Is this because it isn't saved??

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    What I do is have an invisible actor on each scene that has "scene specific attributes"

    So for attributes that change constantly then I "refresh" them with this actor. In your case, I'd have on my "Scene Specific Attribute" actor a Change Attribute; MainLife to 50. That way, each scene the player starts with 50 life.
  • calvin9403calvin9403 Member Posts: 3,186
    jeancrast2 said:
    I an attribute called MainLife for the main character....and it decrease by 1 each time he gets hit by bullets...the attribute is 50.... When I reset the game he doesn't appear, after he dies...I have to reset the game from the beginning...Is this because it isn't saved??

    why do you what to reset the game?
  • jeancrast2jeancrast2 Member Posts: 12
    I want to reset the game when the actor dies...when he dies the health doesn't return 50...it stays 0...I have to reset the whole game t become 50....
  • jeancrast2jeancrast2 Member Posts: 12
    I want to reset only the scene instead of having to reset the whole game...and also when I reset the scene only...the actors don't move or shoot I have to reset the game to be functioning
  • jeancrast2jeancrast2 Member Posts: 12
    ok problem solved thanks
Sign In or Register to comment.