Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. var x1 , x2 , y1 , y2 , point_mouse;
  2. point_mouse = point_direction( obj_player.x , obj_player.y , mouse_x , mouse_y );
  3. x1 = obj_player.x;
  4. x2 = obj_player.x + lengthdir_x( radius , point_mouse );
  5. y1 = obj_player.y;
  6. y2 = obj_player.y + lengthdir_y( radius , point_mouse );
  7. x = ceil( median( x1 , mouse_x , x2 ) );
  8. y = ceil( median( y1 , mouse_y , y2 ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement