12-02-2009, 05:29 PM
Code:
if ( hspeed> 0 && x < other.x )
{
move_contact_all(direction,12);
hspeed = 0;
}
if ( vspeed> 0 && y < other.y )
{
move_contact_solid(direction,12);
vspeed = 0;
}
if ( vspeed< 0 && y > other.y )
{
move_contact_solid(direction,12);
vspeed = 0;
}
if ( hspeed< 0 && x > other.x )
{
move_contact_all(direction,12);
hspeed = 0;
}



The Legendary Anubis![[Image: TheLegendaryAnubis.jpg]](/image.php?src=http%3A%2F%2Fi576.photobucket.com%2Falbums%2Fss202%2FGodBlessYouAll45%2FTheLegendaryAnubis.jpg&hash=eaaf763ed9c1ef3ebf17c88cf0bfc4ce)