Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_cliff_petalwarp_Create_0

(view raw script w/o annotations or w/e)
1
con = 0;
2
timer = 0;
3
susie = -4;
4
ralsei = -4;
5
image_speed = 0;
6
tangible = true;
7
target_alpha = 0;
8
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
9
scr_platswap_init
scr_platswap_init

function
scr_platswap_init(arg0 = undefined, arg1 = true)
{ if (!instance_exists(obj_platswap)) return -4; if (!instance_exists(obj_platswap_helper)) instance_create(0, 0, obj_platswap_helper); var _helper = 658; if (arg0 == undefined) { ignore_yorigin = 0; if (!variable_instance_exists(id, "force_yplat")) force_yplat = false; with (_helper) init_platswap(other.id, arg1); return _helper; } if (instance_exists(arg0)) { with (arg0) { if (!variable_instance_exists(id, "force_yplat")) force_yplat = false; ignore_yorigin = 0; with (_helper) init_platswap(arg0.id, arg1); return _helper; } } } function scr_platswap_init_alt(arg0 = id, arg1 = true) { if (!instance_exists(obj_platswap)) return -4; if (!instance_exists(obj_platswap_helper)) instance_create(0, 0, obj_platswap_helper); if (instance_exists(arg0)) { with (arg0) { ignore_yorigin = 1; if (!variable_instance_exists(id, "force_yplat")) force_yplat = false; with (_helper) init_platswap(other.id, arg1); return _helper; } } } function scr_plat_make_pauseable(arg0 = id) { if (!instance_exists(obj_platswap)) return -4; if (!instance_exists(obj_plat_pausing_helper)) instance_create(0, 0, obj_plat_pausing_helper); with (obj_plat_pausing_helper) add_object(arg0); }
();
10
leafstorm = instance_create(x, y, obj_petal_whirlwind);
11
leafstorm.depth = depth;
12
leafstorm.active = false;
13
spinner_con = 0;
14
angle = 90;
15
length = 30;
16
r_height = 0;
17
k_height = 0;
18
s_height = 0;
19
rotation = 6;