| 1 | draw_sprite_ext(spr_iceblock_bottom, 0, x, y, image_xscale, image_yscale, 0, c_white, (1 - whitepro) * image_alpha); |
| 2 | draw_sprite_ext(spr_iceblock_white, 0, x, y, image_xscale, image_yscale, 0, c_white, whitepro * image_alpha); |
| 3 | timer += 1; |
| 4 | if (timer < 30) |
| 5 | x += 3; |
| 6 | if (timer == 30) |
| 7 | gravity = 0.3; |
| 8 | if (timer == 52) |
| 9 | { |
| 10 | snd_play(snd_vaporized); |
| 11 | gravity = 0; |
| 12 | vspeed = 0; |
| 13 | } |
| 14 | if (timer >= 53) |
| 15 | { |
| 16 | instance_create((x - 19) + random(38), y, obj_steamplume2); |
| 17 | whitepro += 0.05; |
| 18 | image_yscale -= 0.03; |
| 19 | y += 0.5; |
| 20 | if (image_yscale < 0.3) |
| 21 | image_alpha -= 0.1; |
| 22 | } |
| 23 | if (image_yscale < 0.01) |
| 24 | d = 1; |
| 25 | if (timer >= 90) |
| 26 | d = 1; |
| 27 | if (d == 1) |
| 28 | { |
| 29 | x = -30; |
| 30 | y = ystart + floor(random(22)); |
| 31 | whitepro = 0; |
| 32 | timer = -10; |
| 33 | d = 0; |
| 34 | image_xscale = 1; |
| 35 | image_yscale = 1; |
| 36 | whitepro = 0; |
| 37 | gravity = 0; |
| 38 | hspeed = 0; |
| 39 | vspeed = 0; |
| 40 | image_alpha = 1; |
| 41 | } |