Interpolate X amount of Pixels every touch

Simple Gamer ArtsSimple Gamer Arts Member, PRO Posts: 302
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, UKMember Posts: 2,342

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

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

  • RowdyPantsRowdyPants Member Posts: 465

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

  • pHghostpHghost London, UKMember Posts: 2,342

    Agreed. :wink:

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