Constraining an actor to a scene.

Greetings Kind Folks,
I have a very simple game where an actor moves around the screen of an iPad. I want the scene size to be the screen size (768x1024).
The problem is that my actor can move out of the scene... how does one constrain the actor to keep it on the screen/in the scene? I have created another actor and replicated it 4 times in order to create walls at the edge of the scene. This works but it seems cluncky. Is there another way to do this?
Thanks,
D-
I have a very simple game where an actor moves around the screen of an iPad. I want the scene size to be the screen size (768x1024).
The problem is that my actor can move out of the scene... how does one constrain the actor to keep it on the screen/in the scene? I have created another actor and replicated it 4 times in order to create walls at the edge of the scene. This works but it seems cluncky. Is there another way to do this?
Thanks,
D-
Comments
D-