Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_combo_original_Collision_obj_hand_collision

(view raw script w/o annotations or w/e)
1
if (cooldown <= 0 && action > 2 && action < 6)
2
{
3
    fade = 1;
4
    cooldown = 30;
5
alarm[0]
6
    hp -= 1;
7
    snd_play(snd_spell_pacify);
8
    var num = 8;
9
    dir = irandom(360);
10
    for (i = 0; i < num; i++)
11
    {
12
        with (instance_create_depth(x + lengthdir_x(16, (i / num) * 360), y + lengthdir_y(16, (i / num) * 360), depth - 1, obj_heart_sparkle))
13
            motion_set(other.dir, irandom_range(4, 6));
14
        dir += ((i / num) * 360);
15
    }
16
}