Step_0.gml 224 B

12345678910111213
  1. if status == "follow"
  2. {
  3. x = mouse_x + r * cos(degtorad(-image_angle));
  4. y = mouse_y + r * sin(degtorad(-image_angle));
  5. image_angle++;
  6. if spread
  7. {
  8. if r++ > 224
  9. spread = false;
  10. }
  11. else if r-- < 160
  12. spread = true;
  13. }