Locking position
ktorti
Member Posts: 27
Hey all, quick question..
I have an actor which moves up and the x axis is constrained so it doesn't move left or right, but when my main actor collides with it, it moves up further and it shouldn't. Is there a way to constrain the Y axis too but still allow it to move?
Comments
Yes, you can constrain movement with the min() and max() functions.
If you look at the self.position.Y constraint at http://forums.gamesalad.com/discussion/comment/53852/#Comment_53852 and the two posts below it, you should be able to set it up the way you want it to work.
If you have questions, post them here.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User