interpolate score counting too much

PeeCeePeeCee Member Posts: 107
edited November -1 in Working with GS (Mac)
Hi guys,

I have an issue with interpolate function with score.
Im also using custom numbers for my score.

If i use change attribute score = score+1 : everything is going fine
But if i use, interpolate score = score +1 : it's adding mores points then it should be.
Im sure its something simple. I've played around with duration and it gives me variant results.

thanks for your help

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Interpolate actively updates the target value. So as score is going up, the target (score+1) is going up as well.

    Make an attribute for the target value, then interpolate to that value.
  • PeeCeePeeCee Member Posts: 107
    hi codemonkey.

    so what your saying is i need another variable/attribute(e.g.countscore) that does the score keeping/counting and then i interpolate score = countscore ???

    please confirm.
    many thanks for your assistance.
  • PeeCeePeeCee Member Posts: 107
    It worked and someone on this side is extremely happy :).

    Thankyou to both of you , both to CodeMonkey and the famous Tshirt :).

    I thankyou & Appreciate your ever ongoing work and support that you provide to all the user/fans and in particular myself recently :)

    God bless
  • RodrigoPerezRodrigoPerez Member Posts: 212
    I must be doing something wrong because when I do this it goes up to the number I've set the integer attribute game.newscore to in this case it's 500, but when I hit another enemy it doesn't go past 500.. how do I set it up to where it adds 500 to the score every time an enemy is hit?
Sign In or Register to comment.