Room Boundaries
#1
Posted 08 August 2009 - 06:33 AM
#2
Posted 08 August 2009 - 06:48 AM
if(x>room_width-sprite_width){x=room_width-sprite_width;}
if(x<0){x=0;}
#3
Posted 08 August 2009 - 07:48 AM
You could also use "x = xprevious; y = yprevious;" in the intersect boundary event.
#4
Posted 08 August 2009 - 08:02 AM
#5
Posted 08 August 2009 - 09:10 AM
that would be on the 1st room the object starts in wouldnt it? how would i do it for a certain room?
if room=certain_room
{
if x>room_width
{
x=room_width
}
if x<0
{
x=0
}
}
Edited by TheSnidr, 08 August 2009 - 09:10 AM.
#6
Posted 08 August 2009 - 09:15 AM
It doesn't matter which room it is. It will work for every room.that would be on the 1st room the object starts in wouldnt it? how would i do it for a certain room?
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











