Page 1 of 1

Restraining an actor from exiting the screen

PostPosted: Sun Aug 12, 2007 10:34 pm
by motorollin
How do I stop an actor from leaving the screen when it reaches the edge of the view? I don't want the screen to scroll and I want the actor to stop when it hits the edge. I tried creating a wireframe region at each edge of the view and creating a collide event for each one which sets the velocity multiplier of the event actor to 0, but sometimes the actor jumps all the way across the region and disappears off the screen (particularly on the left hand side for some reason)

TIA
moto

PostPosted: Sun Aug 12, 2007 10:38 pm
by d-soldier
I've had this exact same issue while framing the view with both wireframe and filled regions... I do recall getting a better response when I made the regions much bigger, and overlapping eachother... but I've found that a single hollow rectangle image .gif file gets the results better then the regions did.

PostPosted: Sun Aug 12, 2007 10:48 pm
by motorollin
That did the trick. Thanks!