All pastes #639232 Raw Edit

Jemand

public text v1 · immutable
#639232 ·published 2007-07-30 13:00 UTC
rendered paste body
				if( local.x > main.room.width - ( bounds.width + 30 ) && !( local.y > main.room.height - ( bounds.height + 60 ) ) )
				{
					bitmap.rotation = -90;
				}
				else if( local.x < bounds.width + 30 && !( local.y < bounds.height + 60 ) )
				{
					bitmap.rotation = 90;
					
				}
				
				if( local.y > main.room.height - ( bounds.height + 30 ) && !( local.x > main.room.width - ( bounds.width + 60 ) ) )
				{
					bitmap.rotation = 0;			
				}
				else if( local.y < bounds.height + 30 && !( local.x < bounds.width + 60 ) )
				{
					bitmap.rotation = 180;			
				}