Keep Object From Moving on Y Axis
SolarPepperStudios
Member Posts: 754
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,949Try turning on fixed rotation and setting bounciness to zero on the "pipes" actor. Or try constraining self.position.y to a numerical value.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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)
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User