Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_knight_rotating_slash_Create_0

(view raw script w/o annotations or w/e)
1
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
2
scr_darksize
scr_darksize

function
scr_darksize()
{ var inst = id; if (argument_count) inst = argument0; inst.image_xscale = 2; inst.image_yscale = 2; }
();
3
image_speed = 0;
4
difficulty = 2;
5
slash_number = 1;
6
slashes_done = false;
7
rotation = 16;
8
rotation_base = 16;
9
rotation_change = 1;
10
rotation_goal = 2;
11
timer = 0;
12
state = "intro";
13
turn_type = "full";
14
turn_segment = -1;
15
next_up = -1;
16
next_next_up = -1;
17
local_turntimer = 0;
18
aim_direction = 0;
19
spin = choose(-1, 1);
20
random_offset = irandom(360);
21
slash_array[0] = 1;
22
slash_array[1] = 2;
23
slash_array[2] = 2;
24
slash_array[3] = 3;
25
slash_array[4] = 3;
26
slash_array[5] = 4;
27
slash_counter = 0;
28
final_counter = 0;
29
slash_base = 18;
30
slash_offset = 6;
31
speed_gain = 16;
32
cooldown_time = 6;
33
slash_timer = 8;
34
aim_type = 0;
35
anchor_x = x;
36
anchor_y = y;
37
aim_x = x;
38
aim_y = y;
39
r = 0;
40
g = 0;
41
b = 0;
42
line_width = 4;
43
slash_list = ds_list_create();
44
movebox_x = 40;
45
movebox_y = 60;
46
line2 = -1;
47
line3 = -1;
48
do_final = true;
49
my_surface = -4;
50
turn_limit_4 = 270;
51
debug = false;