Collide With One Object Move A Different Object Challenge

Discussion in 'How Can I...?' started by NetTemple, Dec 8, 2017.

  1. NetTemple

    NetTemple Boxer

    Apr 2, 2017
    Likes Received:
    I have a challenge - I have two small platforms (left-A and right-B) and centered above them a static object. I want a ball (character) to bounce on platform A and then the static object above should move one pixel to the LEFT. Likewise when I hop the ball over to platform B, the static object should move one pixel to the RIGHT.

    So therefore - if I hop 3 times on the left A platform, the static object moves 3 pixels to the left (one pixel per hop/collision). As I hop back and forth from platform to platform, I am moving the static object accordingly. Any suggestions?

Share This Page