Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // move_towards2(x, y, spd)
- var dir;
- dir = point_direction(x, y, argument0, argument1);
- x += lengthdir_x(argument2, dir);
- y += lengthdir_y(argument2, dir);
- // use this to set the angle
- image_angle = point_direction(xprevious, yprevious, x, y);
Add Comment
Please, Sign In to add comment