We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Screen borders (Read 315 times)
Screen borders
Jan 28th, 2009, 8:00pm
 
Hello all!
I've defined a screen border for my platform game.
But how do I make it so my character won't go beyond the borders???

Samantha =)
Re: Screen borders
Reply #1 - Jan 29th, 2009, 12:27am
 
Tell him not to go beyond, otherwise bad things will happen to him...

Frankly, with the amount of detail you provide, I can hardly help you more... :-D
Re: Screen borders
Reply #2 - Jan 29th, 2009, 2:09am
 
How about comparing your characters bounding coordinates with the coordinates you used to define the border?

Page Index Toggle Pages: 1