Changing integer attributes

bluebyu25bluebyu25 Member Posts: 500
edited November -1 in Working with GS (Mac)
Hey guys dont know what I am doing wrong here. I set up a simple game attribute called "Last Game". My game is dependent on when game.misses=3, the game is over.

So in my round rules actor I have this:

When game.misses=3

Change game.last game. to game.score

Yet it always displays 0 and I cant figure it out. I must be missing something small or blatantly obvious here. My score attribute works just fine, and I use this same mechanic to change my game.high score so I don't know why it isn't working.

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Are you absolutely positive you are displaying the correct attribute? This happens to me sometimes when i've been troubleshooting a bunch and change rules and attributes around and I miss updating the attribute I need to be displaying.

    Just a thought. Otherwise i'm not sure why it wouldn't be updating correctly without taking a look.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    Also be sure when you make the integer to set the value to 3
  • bluebyu25bluebyu25 Member Posts: 500
    Yea i'm positive. I even deleted it and reset it all up, I have no idea what the deal is. I put it in the main gameplay screen just to see if it was ever changing from 0 and it isn't. I made the change non conditional to, just put change attribute game.last game to game.score and it never works. Really odd, must have some little quirk hidden away somewhere.

    I have my game.score set up as a custom font, wonder if that could have anything to do with it.
  • bluebyu25bluebyu25 Member Posts: 500
    Well I got it to work, not sure why I had to go this route but when I use constrain attribute, it's smooth sailing.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    bluebyu25 said:
    Yea i'm positive. I even deleted it and reset it all up, I have no idea what the deal is. I put it in the main gameplay screen just to see if it was ever changing from 0 and it isn't. I made the change non conditional to, just put change attribute game.last game to game.score and it never works. Really odd, must have some little quirk hidden away somewhere.

    I have my game.score set up as a custom font, wonder if that could have anything to do with it.

    The non conditional change attribute will prob not work because it will only run the first time the actor loads so at that time the score is prob still 0.

    If you have replaced that same exact setup when you replaced with constrains thats why it would work because a constrain constantly updates.
Sign In or Register to comment.