Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_suitspuzz_button_Create_0

(view raw script w/o annotations or w/e)
1
image_xscale = 2;
2
image_yscale = 2;
3
press_timer = 0;
4
boss = 0;
5
image_speed = 0;
6
type = 0;
7
d_index = 0;
8
if (id == instance_find(object_index, 0))
9
{
10
    boss = 1;
11
    type = 0;
12
    image_index = 0;
13
    d_index = image_index;
14
}
15
if (id == instance_find(object_index, 1))
16
{
17
    type = 1;
18
    image_index = 2;
19
    d_index = image_index;
20
}
21
if (id == instance_find(object_index, 2))
22
{
23
    type = 2;
24
    image_index = 4;
25
    d_index = image_index;
26
}