Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_sword_tunnel_manager_Create_0

(view raw script w/o annotations or w/e)
1
timer = -40 + irandom(10);
2
finishtimer = 0;
3
finishtimermax = 230;
4
if (obj_knight_enemy.difficulty == 3)
5
    finishtimermax = 250;
6
con = 0;
7
swordx = camerax() + camerawidth() + 20;
8
swordy = obj_growtangle.y;
9
swordxrel = 340;
10
swordyrel = 0;
11
sworddirection = 180;
12
swordcount = 0;
13
setcount = choose(2, 3, 4);
14
waitsetcount = choose(1, 2, 3);
15
movedirection = choose("up", "down");
16
tobymode = 0;
17
difficulty = 0;
18
tobyvolleymode = 0;
19
tobyvolleycount = 0;
20
tobyvolleyamount = 10 + irandom(6);
21
tobyvolleymodeinitspeed = 1;
22
stopsfxtimer = 0;
23
event_user(0);
24
instance_create(obj_knight_enemy.x, obj_knight_enemy.y, obj_knight_swordtunnelanim);