constraint actor to screen size?

JCFordJCFord Member Posts: 785
edited November -1 in Working with GS (Mac)
I have set up a game area 960x480px and have my actor moveable by keyboard commands use the accelerate behaviour. I have also set the camera to follow this actor so it gives the illusion of a scrolling background in all directions.

But when the actor get to the edge of the screen he carries on off the screen. How can I keep him on screen? I know I could build some invisible walls all around the edge that would block the actor from going off, but I thought I would be able to use the constraint behaviour and set it to the screen width and height. I have played around with various settings but am a little out of my depth and there doesn't seem to be any tutorials showing how to do this?

Thanks in advance.
Sign In or Register to comment.