how to make a paddle for a brick game?

Hipster_Owl_StudiosHipster_Owl_Studios Member, PRO Posts: 214
edited November -1 in Working with GS (Mac)
hey guys im trying to make a paddle for my brick game using touch controls for example tap left paddle moves left tap right paddle moves right. but every time the ball collides with my paddle it slowly starts falling down? can someone explain why? thankyou!

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Do you have collisions for the paddle and ball set?
  • DrGlickertDrGlickert Member Posts: 1,135
    Oh, do this; create an attribute called PaddleX, make it a REAL attribute.

    Then, have the first 2 behaviors of the paddle be;
    Change attribute PaddleX to self.position.X
    Constrain Attribute self.position.X to PaddleX

    I re-read your question.
Sign In or Register to comment.