Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (select=1)
  2.    {image_blend=c_lime;}
  3. else
  4.    {image_blend=c_white;}
  5.  
  6. if (global.stuck = 0)
  7. {
  8.     if direction >90 and direction<270
  9.     {
  10.     image_xscale=1;
  11.     }
  12.     else
  13.     {
  14.     image_xscale=-1;
  15.     }
  16. }
  17.  
  18. if (!collision_circle(dx,dy,12,all,1,1))
  19. {
  20.        mp_potential_step_object(dx,dy,3,obj_solids);
  21.        }
  22. else if (point_distance(x,y,dx,dy) > 10)
  23. {
  24. dx -= lengthdir_x(10,point_direction(x,y,dx,dy));
  25. dy -= lengthdir_y(10,point_direction(x,y,dx,dy));
  26.       }
  27. if (instance_exists( obj_build ))
  28. {
  29.    if (select = 0 and obj_build.follow = 0)
  30.    {
  31.    dx = obj_build.x;
  32.    dy = obj_build.y;
  33.    }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement