Interpolate score problem!

app-etiteapp-etite Member Posts: 139
edited November -1 in Working with GS (Mac)
Hi

Instead of using..

change attribute... game.score to game.score+125 (which works)

I tried interpolate.. game.score to game.score+125 but my score zooms up to random numbers in the 900's

Is that just another 0.9.3 bug or am I missing something here??

thanks

Comments

  • bluebyu25bluebyu25 Member Posts: 500
    Could be, I am having problems with fading in and out with 0.9.3 and it worked fine before with the exact same rule I am trying now to get to work now.
  • RHRH Member Posts: 1,079
    Nope, not a bug.

    You will need to do:

    change attribute: self.newscore to game.score+125

    then

    interpolate game.score to self.newscore
  • app-etiteapp-etite Member Posts: 139
    Really?

    Im not touching my game anymore until 0.9.4
  • app-etiteapp-etite Member Posts: 139
    ok thanks RH.

    try that now
  • app-etiteapp-etite Member Posts: 139
    Thanks RH!!

    that worked :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah thats not a bug its alwayss been like that. i rmeeber when i first came across this a couple versions ago.

    Interpolate constantly counts up or down so when you interpolateing to say + or - a number that numbers changing with the interpolate as well

    so you need the attribute with the expression in it so the ending value doesnt change
  • DrGlickertDrGlickert Member Posts: 1,135
    The interpolate function is nice for the score. However, when you interpolate what you'd actually doing is changing game.score (let's say its 1000) to game.score+125 (you want it to go to 1125) for .5 seconds, BUT what actually happens is that for .5 seconds the score goes from 1000 and constantly adds 1125 for the .5 seconds.

    That's not really a bug, it's a limitation of the interpolate function. TSB's video on the scoring of it is good, but isn't quite right for "specific" scoring. If you want random scoring then that's cool. :-)

    Good luck.
  • app-etiteapp-etite Member Posts: 139
    thanks for the input Dr Glickert... I'll check out your vid soon Tshirtbooth.

    Thanks all.
  • rbnarcosrbnarcos Member Posts: 11
    I'm gonna implement this trick on my game and I was gonna do it like on GShelper but just had a question though. On my game it where the score can go up or down. Example if actor "A" hit "target" theres a +100 but it Actor "A" misses and hits "wall" then -30. So my question is when i get a positive score do i add it to (game.oldscore) and then when I get a negative score do I take it away from (game.score)? If that makes sense???
Sign In or Register to comment.