This is a really simple one; I’ll give you the code which makes your one-sprite, one-subimage object to face the mouse:
image_angle = point_direction(x+sprite_width/2,y+sprite_height/2,
mouse_x,mouse_y);
*** Note that the origin of the sprite has to be set to the origin and that the sprite should originally face right.
.
Users logged in:
Comments
Loading comments...