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-The-Horde-Multitroid/Export_Code/gml_Script_enemy_death_froz...

25 lines
576 B

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))
}
}
}
if (unique > 0)
event_user(16)
instance_destroy()