1 | timer += 1 |
2 | if (timer >= 30) |
3 | { |
4 | active = 0 |
5 | image_alpha -= 0.1 |
6 | if (image_alpha <= 0) |
7 | instance_destroy() |
8 | hspeed += lengthdir_x(0.2, bdir) |
9 | vspeed += lengthdir_y(0.2, bdir) |
10 | } |