I don't understand this! Regarding interpolate

StoneclipseStoneclipse Member, PRO Posts: 130
edited June 2012 in Working with GS (Mac)
I tried to interpolate my score. But the number kinda screwed up?

I have an actor, when touch is pressed, interpolate game.Score to game.Score+100.
My starting score is 0, but then it doesnt interpolate to 100.. don't know why

Best Answer

Answers

  • petercoupepetercoupe Member Posts: 94
    I don't use interpolate for this function myself.
    I set up an attribute called game.score, and then have a rule in the actor that says when actor > touch is pressed > change attribute > game.score to game.score + 100.
  • lukey5227lukey5227 Member Posts: 111
    Try this: Set it to interpolate to 100. If that doesn't work, GS has a problem. If it works, continue.

    Try constraining a private attribute to that actor of "Score+100". Now interpolate to that new attribute.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited June 2012
    Come on enough with the GS has a problem..he is not doing it right. @simo103 pointed him to the video that will show him how to do it right. You need to compare the old score to the new score for it to interpolate.
  • StoneclipseStoneclipse Member, PRO Posts: 130
    @petercoupe I want it to have an effect of the score increasing and not just having the score changing all of a sudden.

    @simo103 Thanks, i will have a look at it later.

    @lukey5227 Interpolate to 100 works. But my score doesn't just stops at 100, it will keep increasing.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Watch the video it will show you how to do it.
  • lukey5227lukey5227 Member Posts: 111
    edited June 2012
    Let me sum up the video:

    Get two attributes. Old score and new score.

    When the user gets a higher score, change old score to new score. Then add to new score the amount the user got.

    Make sure you are displaying the old score.

    Interpolate Old score to new score. Repeat.
Sign In or Register to comment.