I don't mean the feet walking or anything, just trying to keeping it upright with the mouse and have the sprite change when it falls too far.
I have been fiddling around with
if ((abs(image_angle-90) >= 5) && (abs(image_angle+90) < 5))
{
sprite_index = spr_upright;
image_angle=point_direction(self.x-10, self.y, mouse_x, mouse_y)
}
else
{
sprite_index = spr_half_over;
image_angle=point_direction(self.x-10, self.y, mouse_x, mouse_y)
}
It will fall to the sides but once the sprite changes it doesn't change back when upright
Any suggestions greatly appreciated
Edited by overflo, 28 April 2012 - 11:19 AM.











