Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_Step_2

(view raw script w/o annotations or w/e)
1
if (i_ex(readable))
2
{
3
    var _xx = sprite_width * 0.1;
4
    var _yy = sprite_height - 40;
5
    if (act == 1 || act == 3)
6
        _yy = -100000;
7
    with (readable)
8
    {
9
        image_xscale = 4;
10
        x = other.x + _xx;
11
        y = other.y + _yy;
12
    }
13
}
14
if (act == 0)
15
{
16
    x = clamp(x, 0, room_width - sprite_width);
17
    y = clamp(y, 0, room_height - sprite_height);
18
}
19
var ob = collision_rectangle(bbox_left + xoff, bbox_top + yoff, bbox_right + xoff, bbox_bottom + yoff, obj_mike, 0, 1);
20
if (ob && act == 0 && ob.act == 0)
21
{
22
    blush = 1;
23
    with (obj_mike_minigame_tv)
24
    {
25
        if (aww == 0)
26
            aww = 1;
27
    }
28
}
29
else
30
{
31
    blush = 0;
32
}