Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x1 , x2 , y1 , y2 , point_mouse;
- point_mouse = point_direction( obj_player.x , obj_player.y , mouse_x , mouse_y );
- x1 = obj_player.x;
- x2 = obj_player.x + lengthdir_x( radius , point_mouse );
- y1 = obj_player.y;
- y2 = obj_player.y + lengthdir_y( radius , point_mouse );
- x = ceil( median( x1 , mouse_x , x2 ) );
- y = ceil( median( y1 , mouse_y , y2 ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement