Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gold_cat_Collision_obj_blue_cat

(view raw script w/o annotations or w/e)
1
if (buffer < 0)
2
{
3
    snd_play(snd_spell_pacify, 1, 1 + (level * 0.02));
4
    var _a = instance_create_depth(other.x, other.y, depth, obj_gold_cat);
5
    _a.speed = speed / 2;
6
    _a.direction = direction;
7
    _a.friction = 0.1;
8
    _a.image_angle = image_angle;
9
    _a.level = level + 1;
10
    scr_sparkle_colour(8, 65535);
11
    var _b = instance_create_depth(other.x, other.y, depth, obj_gravity_text);
12
    _b.image_blend = c_yellow;
13
    _b.str = stringsetloc(
LEVEL
"LEVEL ", "obj_gold_cat_slash_Collision_obj_blue_cat_gml_18_0"
) + string(level + 1);
14
    _b.small = true;
15
    with (obj_mike_controller)
16
    {
17
        if (hand_target == other.id)
18
        {
19
            hand_target = _a;
20
            _a.action = 1;
21
            _a.grab_snd = 1;
22
        }
23
    }
24
    with (other)
25
        instance_destroy();
26
    instance_destroy();
27
}