Help with constraining a character please
SLOCM3Z
Member Posts: 797
Hello,
I need help keeping an actor in the boundaries of the scene and I can't remember how to do it. Please help
Thanks
Comments
There are lots of ways.
One way is to set up non-moveable actors at your screen edges and add a collide in your player to collide with the edge actors.
Another would be to put a rule in your actor like this:
That would stop the player from moving off the left edge of the screen, you'd need to add additional rules for the top, bottom, and right edges.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Cool! Thanks @jamie_c