[GAMEMAKER] Rotate and Move Object to Mouse Position

player event:

angle=point_direction(x,y,mouse_x,mouse_y);//calculate angle between self and mouse
direction=angle;//set direction to move in
image_angle=angle;//set angle of sprite
speed=2;//set moving speed

No comments:

The Win Machine

The Road to Hell is Paved with Intervention ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏    ...

Contact Form

Name

Email *

Message *