Forums

Outside Room Collisions?


Subscribe to Outside Room Collisions? 4 posts, 3 voices

 

Apr 18, 2008 2:38am

mortimitor mortimitor 270 posts

yah how do you make it so that an object can't go outside of a room (but it should on the bottom and top- this is a platformer that im working on). Oh, and how does the game recognize whether youve fallen off the bottom part of the screen or just jumped past the top?

sol, episode one, December 25th.
and by that i mean that December 25th is Christmas and sol is coming out in a time after that date.
=P

 

Apr 18, 2008 8:40pm

mortimitor mortimitor 270 posts

umm..

sol, episode one, December 25th.
and by that i mean that December 25th is Christmas and sol is coming out in a time after that date.
=P

 

Apr 19, 2008 8:14pm

NanoWorks Games NanoWorks... 1517 posts

Just make a wall object and line the Left and Right with them. Make them Invisible.

 

Apr 19, 2008 8:30pm

NAL NAL 2764 posts

In the step event of the character, make a code block.

Code
if x<0 x=0
if x>room_width x=room_width