Keep Object From Moving on Y Axis
Hey everyone. Long time no see. I was wondering how I would keep a movable object from moving up or down when colliding with another object. It has to be able to move along the X axis but not the Y. Thanks everyone.
Best Answer
-
tatiang Posts: 11,949
Try turning on fixed rotation and setting bounciness to zero on the "pipes" actor. Or try constraining self.position.y to a numerical value.
Answers
Edit: I might also mention that the objects I don't want to move up or down are moving along the X axis automatically. (Think of the pipes in Flappy Bird)