Guest User

Untitled

a guest
Oct 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // move_towards2(x, y, spd)
  2. var dir;
  3. dir = point_direction(x, y, argument0, argument1);
  4. x += lengthdir_x(argument2, dir);
  5. y += lengthdir_y(argument2, dir);
  6.  
  7. // use this to set the angle
  8. image_angle = point_direction(xprevious, yprevious, x, y);
Add Comment
Please, Sign In to add comment