How would I interpolate/change a score DOWN when I have it geared to interpolate UP.

jckmcgrawjckmcgraw Member Posts: 647
edited January 2012 in Working with GS (Mac)
Hello everybody,

Here is my problem/background in detail... I have stars that are coming down the screen. They have a rule that says when touch is pressed (and some other stuff), it will change game.tempscore to game.tempscore + 100.

In my controlling actor, I have a rule that says: when attribute game.tempscore is > game.score, interpolate game.score to game.tempscore. This way I have a nice interpolated score.

However, I also have things coming down the screen, and when you touch them, I want it to change or interpolate (it doesn't matter) the score DOWN. If I change subtract from game.score, then game.tempscore will be bigger, and it will interpolate to the same # it was at before.

Any help is greatly appreciated,
Jack McGraw

Comments

  • ozboybrianozboybrian PRO Posts: 2,102
    edited January 2012
    You can't change an interpolations direction until after it's reached it's specified target.
    You will have to try another method. (from my knowledge)

    I would suggest using a timer.
    When the game score is supposed to increase by say 100 points. Timer > for 1 seconds add 1 point every 0.001 seconds.
    Play with that, it works great for my TOTB4 entrant.

    Hope that helps :)

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Support Fabled Apps! :D

    Please LIKE Fabled Apps on Facebook.

    Please Subscribe to Fabled Apps on YouTube.
  • App SurgeApp Surge Member Posts: 651
    I believe you would have to change tempscore down as well as game.score
  • jckmcgrawjckmcgraw Member Posts: 647
    @redsky Thanks so much, it works fine now.
    @ozboybrian Thanks for the quick reply!

    Jack McGraw
Sign In or Register to comment.