You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AM2R-TimeTrials/scripts/enemy_death_frozen.gml

17 lines
539 B

/// enemy_death_frozen()
spawn_rnd_pickup(100);
PlaySoundMono(sndIceShatter);
if (instance_exists(platform)) with (platform) instance_destroy();
repeat (8) deb = instance_create(x, y - 8, oIceShard);
if (global.waterlevel != 0 && y + 8 > global.waterlevel + global.wateroffset) {
repeat (8 + floor(random(4))) {
bubble = instance_create(x, y, oLBubble);
if (instance_exists(bubble)) {
bubble.hspeed = random_range(-1.5, 1.5);
bubble.vspeed = -random(0.4);
}
}
}
instance_destroy();