Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_scissors_act_controller_Draw_0

related scripts: CleanUp_0Create_0Draw_0

(view raw script w/o annotations or w/e)
1
failsafe_timer++;
2
if (failsafe_timer >= 900)
3
    acttimerstart = true;
4
if (acttimerstart)
5
    acttimer++;
6
if (acttimer >= acttimermax)
7
    instance_destroy();
8
if (init == 0)
9
{
10
    init = 1;
11
    if (type == 0)
12
    {
13
        player = instance_create(camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2) + 2, obj_scissors_act_player);
14
        player.saloncut = saloncut;
15
        player.valuecut = valuecut;
16
        player.hypercut = hypercut;
17
        var a = 0;
18
        repeat (10)
19
        {
20
            inst = instance_create(camerax() + 320 + lengthdir_x(73, 36 * a), cameray() + lengthdir_y(73, 36 * a) + 171, obj_scissors_act_node_small);
21
            a++;
22
        }
23
    }
24
    if (type == 1)
25
    {
26
        player = instance_create(camerax() + (camerawidth() / 2), (cameray() + (cameraheight() / 2)) - 12, obj_scissors_act_player);
27
        player.saloncut = saloncut;
28
        player.valuecut = valuecut;
29
        player.hypercut = hypercut;
30
        inst = instance_create((camerax() + 320) - 58, cameray() + 170 + 59, obj_scissors_act_node_small);
31
        inst = instance_create((camerax() + 320) - 30, cameray() + 170 + 59, obj_scissors_act_node_small);
32
        inst = instance_create(camerax() + 320, cameray() + 170 + 59, obj_scissors_act_node_small);
33
        inst = instance_create(camerax() + 320 + 30, cameray() + 170 + 59, obj_scissors_act_node_small);
34
        inst = instance_create(camerax() + 320 + 58, cameray() + 170 + 59, obj_scissors_act_node_small);
35
        inst = instance_create((camerax() + 320) - 58, (cameray() + 170) - 58, obj_scissors_act_node_small);
36
        inst = instance_create((camerax() + 320) - 30, (cameray() + 170) - 58, obj_scissors_act_node_small);
37
        inst = instance_create(camerax() + 320, (cameray() + 170) - 58, obj_scissors_act_node_small);
38
        inst = instance_create(camerax() + 320 + 30, (cameray() + 170) - 58, obj_scissors_act_node_small);
39
        inst = instance_create(camerax() + 320 + 58, (cameray() + 170) - 58, obj_scissors_act_node_small);
40
        inst = instance_create((camerax() + 320) - 58, (cameray() + 170) - 30, obj_scissors_act_node_small);
41
        inst = instance_create((camerax() + 320) - 58, (cameray() + 170) - 0, obj_scissors_act_node_small);
42
        inst = instance_create((camerax() + 320) - 58, cameray() + 170 + 30, obj_scissors_act_node_small);
43
        inst = instance_create(camerax() + 320 + 58, (cameray() + 170) - 30, obj_scissors_act_node_small);
44
        inst = instance_create(camerax() + 320 + 58, cameray() + 170, obj_scissors_act_node_small);
45
        inst = instance_create(camerax() + 320 + 58, cameray() + 170 + 30, obj_scissors_act_node_small);
46
    }
47
    if (type == 2)
48
    {
49
        player = instance_create(camerax() + (camerawidth() / 2), cameray() + (cameraheight() / 2) + 2, obj_scissors_act_player);
50
        player.saloncut = saloncut;
51
        player.valuecut = valuecut;
52
        player.hypercut = hypercut;
53
        inst = instance_create((camerax() + 320) - 60, cameray() + 170 + 75, obj_scissors_act_node_small);
54
        inst = instance_create((camerax() + 320) - 30, cameray() + 170 + 75, obj_scissors_act_node_small);
55
        inst = instance_create(camerax() + 320, cameray() + 170 + 75, obj_scissors_act_node_small);
56
        inst = instance_create(camerax() + 320 + 30, cameray() + 170 + 75, obj_scissors_act_node_small);
57
        inst = instance_create(camerax() + 320 + 60, cameray() + 170 + 75, obj_scissors_act_node_small);
58
        inst = instance_create((camerax() + 320) - 45, cameray() + 170 + 53, obj_scissors_act_node_small);
59
        inst = instance_create(camerax() + 320 + 45, cameray() + 170 + 53, obj_scissors_act_node_small);
60
        inst = instance_create((camerax() + 320) - 25, cameray() + 170 + 35, obj_scissors_act_node_small);
61
        inst = instance_create(camerax() + 320 + 25, cameray() + 170 + 35, obj_scissors_act_node_small);
62
        inst = instance_create((camerax() + 320) - 30, cameray() + 170 + 10, obj_scissors_act_node_small);
63
        inst = instance_create(camerax() + 320 + 30, cameray() + 170 + 10, obj_scissors_act_node_small);
64
        inst = instance_create((camerax() + 320) - 45, (cameray() + 170) - 10, obj_scissors_act_node_small);
65
        inst = instance_create(camerax() + 320 + 48, (cameray() + 170) - 10, obj_scissors_act_node_small);
66
        inst = instance_create((camerax() + 320) - 45, (cameray() + 170) - 38, obj_scissors_act_node_small);
67
        inst = instance_create(camerax() + 320 + 53, (cameray() + 170) - 38, obj_scissors_act_node_small);
68
        inst = instance_create((camerax() + 320) - 26, (cameray() + 170) - 64, obj_scissors_act_node_small);
69
        inst = instance_create(camerax() + 320 + 31, (cameray() + 170) - 64, obj_scissors_act_node_small);
70
        inst = instance_create(camerax() + 320, (cameray() + 170) - 71, obj_scissors_act_node_small);
71
    }
72
}
73
if (type == 0)
74
    draw_sprite_ext(spr_sheary_circle, 0, camerax() + 320, cameray() + 170, 2, 2, 0, c_white, 1);
75
if (type == 1)
76
    draw_sprite_ext(spr_sheary_square, 0, (camerax() + 320) - 2, (cameray() + 170) - 19, 2, 2, 0, c_white, 1);
77
if (type == 2)
78
    draw_sprite_ext(spr_sheary_lock, 0, camerax() + 320, cameray() + 170, 2, 2, 0, c_white, 1);