1 | if (live_call()) |
2 | return global.live_result; |
3 | if (hp_self <= 0) |
4 | { |
5 | if (sprite_index != spr_battle_flowey_mechanical_drone_explode) |
6 | { |
7 | sprite_index = spr_battle_flowey_mechanical_drone_explode; |
8 | image_index = 0; |
9 | audio_play_sound(snd_badexplosion, 1, 0); |
10 | } |
11 | else if (image_index >= (image_number - 1)) |
12 | { |
13 | instance_destroy(); |
14 | } |
15 | } |
16 | sin_deg += speed_self; |
17 | if (sin_deg > 360) |
18 | sin_deg -= 360; |
19 | y = ystart + (y_variation * sin(degtorad(sin_deg))); |
20 | event_inherited(); |