Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_minigame_controller_Alarm_3

(view raw script w/o annotations or w/e)
1
with (obj_mike_controller)
2
{
3
    sign_action2 = 1;
4
    if (sign_x2 == sign_x)
5
    {
6
        if (sign_x == (camerax() + (camerawidth() / 2)))
7
            sign_x2 = camerax() + (camerawidth() * choose(0.25, 0.75));
8
        else
9
            sign_x2 = camerax() + (camerawidth() / 2);
10
    }
11
}
12
for (i = 0; i < 20; i++)
13
{
14
    var ob = instance_create_depth(16 + camerax() + (i * 32), cameray() - 100, depth - 1, obj_mike_quiet);
15
    ob.type = 1;
16
}