Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_homealone_basement_actor_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
can_interact = true;
3
target_actor = -4;
4
actor_name = "";
5
basement_parent = instance_find(obj_noellehouse_basement, 0);
6
7
init_actor = function(arg0, arg1)
8
{
9
    target_actor = arg0;
10
    actor_name = arg1;
11
    sprite_index = target_actor.sprite_index;
12
    image_index = target_actor.image_index;
13
    image_speed = target_actor.image_speed;
14
    x = target_actor.x;
15
    y = target_actor.y;
16
    depth = target_actor.depth - 10;
17
};
18
19
trigger = function()
20
{
21
    can_interact = false;
22
    var _actor_name = actor_name;
23
    with (basement_parent)
24
        freak_out(_actor_name);
25
};