Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_rotation_attack_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
timer = 0;
3
handlerp = 0;
4
rotSign = choose(-1, 1);
5
pivotx = obj_growtangle.x;
6
pivoty = obj_growtangle.y;
7
hand_a = instance_create(gt_minx() - (20 * rotSign), gt_miny() - 20, obj_shutta_hands);
8
hand_a.image_speed = 0;
9
hand_a.image_index = 0;
10
hand_a.image_alpha = 0;
11
hand_a.image_xscale = 2 * rotSign;
12
hand_a.image_yscale = 2;
13
hand_b = instance_create(gt_maxx() + (20 * rotSign), gt_maxy() + 20, obj_shutta_hands);
14
hand_b.image_speed = 0;
15
hand_b.image_index = 1;
16
hand_b.image_alpha = 0;
17
hand_b.image_xscale = 2 * rotSign;
18
hand_b.image_yscale = 2;
19
bullets[0] = 0;
20
listsize = 0;
21
snapshot = -4;
22
alarm[0]
 = 20;
gml_Object_obj_shutta_rotation_attack_Alarm_0.gml

if (con == 0 && motion_blur && afterimage_index < afterimage_count) { with (obj_collidebullet) { var _afim = instance_create(x, y, obj_bulletparent);
scr_image_copy(_afim, self);
_afim.image_alpha = 0; _afim.saved_alpha = ((other.afterimage_index + 1) / other.afterimage_count) * 0.4; afterimage[other.afterimage_index] = _afim; afterimage[other.afterimage_index].image_speed = 0; } afterimage_index++; alarm[0]
 = afterimage_interval;
} else { con++; } if (con == 1) { take_photo = true; if (multiple) alarm[0]
 = 10;
else alarm[0]
 = 15;
} if (con == 2 && difficulty >= 1) { if (difficulty >= 4) lerp_time = edit_time; if (difficulty >= 3) alarm[0]
 = edit_time;
else alarm[0]
 = random_range(20, 50);
} if (con == 3) alarm[0]
 = wait_time;
if (con == 4) event_user(1);
23
rotation = 0;
24
surface_alpha = 1;
25
border = 0;
26
depth -= 100;
27
rotspd = 0;
28
freeze = false;
29
photo = true;
30
extra_sprite_obj = -1;
31
extra_sprite = -1;
32
difficulty = 0;
33
if (i_ex(obj_growtangle))
34
{
35
    x = obj_growtangle.x;
36
    y = obj_growtangle.y;
37
}
38
else
39
{
40
}
41
pos_lerp = 0;
42
targetx = 0;
43
targety = 0;
44
shotsize = 180;
45
padding = 15;
46
hand_a_dist = 0;
47
hand_b_dist = 0;
48
init = false;
49
lerp_time = 30;
50
framex = x;
51
framey = y;
52
multiple = false;
53
motion_blur = false;
54
afterimage_count = 2;
55
afterimage_index = 0;
56
afterimage_style = 1;
57
afterimage_interval = 2;
58
made = 0;
59
fixed_pivot = true;
60
writer = -1;
61
edit_time = 40;
62
wait_time = 15;
63
special_timing = false;
64
max_rotate_speed = 4;
65
accel = 0.5;
66
decel = 1;
67
attacktype = 64;
68
controller = -1;
69
other_controller = -1;
70
with (obj_dbulletcontroller)
71
{
72
    if (type == 64)
73
    {
74
        other.controller = id;
75
    }
76
    else
77
    {
78
        other.other_controller = id;
79
        other.attacktype = type;
80
    }
81
}
82
if (attacktype == 62)
83
    max_rotate_speed = 2;
84
if (attacktype == 66)
85
{
86
    motion_blur = true;
87
    max_rotate_speed = 2;
88
}
89
if (attacktype == 77)
90
    motion_blur = true;
91
if (attacktype == 145)
92
    max_rotate_speed = 0;
93
if (attacktype == 147)
94
    max_rotate_speed = 1;
95
take_photo = false;