@tatiang said:
Lol @Socks. I was baffled for a moment there.
@oswaldev018 Can you explain more about what you mean? Are you wanting to limit the position of the actor? Is the actor moving?
when my player reaches the bottom of the screen in position and does not slip out
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
You can add a "barrier" actor and use the Collision behavior to bounce the player actor away or you can do something like constrain self.Position.Y to max(0+self.Size.Height/2,self.Position.Y).
Comments
Lol @Socks. I was baffled for a moment there.
@oswaldev018 Can you explain more about what you mean? Are you wanting to limit the position of the actor? Is the actor moving?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
when my player reaches the bottom of the screen in position and does not slip out
You can add a "barrier" actor and use the Collision behavior to bounce the player actor away or you can do something like constrain self.Position.Y to max(0+self.Size.Height/2,self.Position.Y).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
If actor self y position =< 0
Constrain self position y to 20
Will stop it at bottom.
Numbers you can change.
Keep it from" slip out. "