[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:

This will make you a better decision maker | Annie Duke (author of “Thinking in Bets” and “Quit”, former pro poker…

Annie is a former professional poker player, decision-making expert, author, and special partner at First Round Capital.  ͏     ­͏     ­͏   ...

Contact Form

Name

Email *

Message *