GameSalad

Interpolate X amount of Pixels every touch

Simple+Gamer+ArtsSimple Gamer Arts Posts: 136Member, 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.

Comments

  • pHghostpHghost London, UKPosts: 2,222Member

    make an attribute in the actor:

    self.target_Y

    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: 136Member, PRO

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

  • RowdyPantsRowdyPants Posts: 261Member, PRO

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

  • pHghostpHghost London, UKPosts: 2,222Member

    Agreed. :wink:

  • ToqueToque Posts: 1,127Member, 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.