Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Interpolate X amount of Pixels every touch

Simple Gamer ArtsSimple Gamer Arts Posts: 253Member, 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,289Member

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

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

  • RowdyPantsRowdyPants Posts: 416Member, PRO

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

  • pHghostpHghost London, UKPosts: 2,289Member

    Agreed. :wink:

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