Help resetting attribute integer value to 0

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
I have a "change attribute" in my actor and when it passes the bottom of the screen it collides with an invisible actor that is supposed to change game.streak to game.streak=0

But it isnt working. It keeps counting towards the players streak even if they miss.

(i.e. if they get 24 out of 25, my "25 streak!" will still pop up bc they 25 actors have spawned, not bc the player has hit all 25 in a row)

Comments

  • m456arcusm456arcus Member Posts: 189
    Instead of game.streak=0, just try 0.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Can you post a screen shot of your rules? Like m456arcus has said if in your change attribute rule you have anything other than 0 in the field for what you are changing to that will also cause a problem. If that doesn't fix it post a screen shot.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yes you should just be changing the attribute to 0, not game attribute=0
  • bluebyu25bluebyu25 Member Posts: 500
    Thanks guys. And in the change attribute should it look like "game.streak to 0" or is it "game.streak to game.streak0"

    Im about to try, right now im just touching up graphics.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    bluebyu25 said:
    Thanks guys. And in the change attribute should it look like "game.streak to 0" or is it "game.streak to game.streak0"

    Im about to try, right now im just touching up graphics.

    just 0
  • bluebyu25bluebyu25 Member Posts: 500
    Thanks again, works great now.
Sign In or Register to comment.