2024-07-24 09:28:35 -05:00
|
|
|
entity.Direction.direction = Math.random() * Math.TAU;
|
|
|
|
|
|
|
|
entity.Controlled.directionMove(entity.Direction.direction);
|
2024-07-21 11:14:51 -05:00
|
|
|
|
|
|
|
await wait(0.25 + Math.random() * 2.25);
|
2024-07-24 09:28:35 -05:00
|
|
|
|
|
|
|
entity.Controlled.stop();
|
2024-07-21 11:14:51 -05:00
|
|
|
|
|
|
|
entity.Sprite.isAnimating = 0;
|
|
|
|
|
|
|
|
await wait(1 + Math.random() * 3);
|
|
|
|
|
2024-07-24 09:28:35 -05:00
|
|
|
entity.Direction.direction = Math.random() * Math.TAU;
|
2024-07-21 11:14:51 -05:00
|
|
|
|
|
|
|
await wait(0.5 + Math.random() * 2.5);
|
|
|
|
|
|
|
|
entity.Sprite.isAnimating = 1;
|