Min/Max assigned to X cood
BenMakesGames
Member Posts: 85
Hey GS team,
Im trying to constrain an actor to a Min/Max value but im not sure how to go about it based on the information I have out there.
I want constrain the X value to a Min of 50 and a Max of 300, does anyone know what I should put into the code?
Comments
Constrain Attribute self.Position.X to min(300,max(50,self.Position.X))
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User