Weird, for me that code is working like you want, but if you replaces image_angle with point_direction(x,y,mouse_x,mouse_y), what happenes then
Strangely, that doesn't work.
Do you mean that the player like walks around in a circle around the mouse??
in that case i have a movement code like that:// Movement if keyboard_check(ord('W')) = true && distance_to_point(mouse_x,mouse_y) > 0 { speed = 4; direction = image_angle; } if keyboard_check(ord('S')) = true && distance_to_point(mouse_x,mouse_y) > 0 { speed = 3; direction = image_angle + 180; } if keyboard_check(ord('A')) = true && distance_to_point(mouse_x,mouse_y) > 0 { speed = 2; direction = image_angle + 90; } if keyboard_check(ord('D')) = true && distance_to_point(mouse_x,mouse_y) > 0 { speed = 2; direction = image_angle + 270; }Maybe I should add more detail to what I want.
Press W, player moves towards the mouse.
Press S, player moves away from mouse.
Press A, player moves left around the mouse (in a circle).
Press D... player moves right around mouse (in a circle).
Because that code doesn't work.
EDIT: Sorry mrroke96. I'm using image_index variable for my player to point at the mouse.
I sorted it out by changing image_angle with image_index, as my player rotates counter-clockwise 360 frames, so I can link direction with subimages.



Find content
Not Telling
