Interpolate X amount of Pixels every touch

Simple Gamer ArtsSimple Gamer Arts Posts: 186Member, PRO
edited December 2017 in Working with GS (Mac)

How can I use interpolate in the following fashion?

I want to move actor's Y position +70 pixels every touch/tap by interpolating.

It's tricky... I've been stuck on it for a couple of days.


  • pHghostpHghost London, UKPosts: 2,282Member

    make an attribute in the actor:


    Then a rule:

    when touch is pressed DO:
    -- change: self.target_Y to: self.position.y + 70
    -- interpolate self.position.y to: self.target_Y
  • Simple Gamer ArtsSimple Gamer Arts Posts: 186Member, PRO

    @pHghost You will have access to my bank account and future swimsuit model wife. THANK YOU, it worked like a charm!

  • RowdyPantsRowdyPants Posts: 388Member, PRO

    @Simple Gamer Arts "and future simsuit model" :mrgreen:

  • pHghostpHghost London, UKPosts: 2,282Member

    Agreed. :wink:

  • ToqueToque Posts: 1,161Member, PRO
    edited December 2017

    hmmmm. Your actor won’t detect a collision and stop if it’s moving by interpolation.

    I bet that’s your other problem.

    Access to your wife is kind of creepy. We could probably come to mutual understandings on your bank account.

Sign In or Register to comment.