Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_npc_acid_house_Collision_obj_queencar

(view raw script w/o annotations or w/e)
1
if (!bumped)
2
{
3
    bumped = true;
4
    snd_play(snd_bell);
5
    house_sprite.image_index = 1;
6
    global.flag[458 houses_hit]++;
7
    debug_message("global.flag[458 houses_hit]:" + string(global.flag[458 houses_hit]) + "/7");
8
    with (house_sprite)
9
    {
10
        var housecolor = c_white;
11
        if (image_index == 0)
12
            housecolor = c_red;
13
        if (image_index == 1)
14
            housecolor = c_blue;
15
        
scr_fx_housesquare
scr_fx_housesquare

function
scr_fx_housesquare(arg0, arg1, arg2)
{ var gr = 0; for (i = 0; i < 3; i++) { gr = instance_create(arg0, arg1, obj_fx_growsquare); gr.color = arg2; gr.alarm[0] = 1 + (i * 3); gr.depth = depth - 10; } }
(x + (sprite_width / 2), y + (sprite_height / 2), housecolor);
16
    }
17
}