Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_green_switch_Create_0

(view raw script w/o annotations or w/e)
1
timer = 0;
2
timer2 = 0;
3
type = 0;
4
image_xscale = 2;
5
image_yscale = 2;
6
image_speed = 1/3;
7
if (i_ex(obj_sound_of_justice_enemy))
8
    image_blend = c_black;
9
with (obj_hammer_of_justice_enemy)
10
    image_alpha = 0;
11
with (obj_sound_of_justice_enemy)
12
    image_alpha = 0;
13
scr_oflash
scr_oflash

function
scr_oflash()
{ _oflash = instance_create(x, y, obj_oflash); _oflash.image_xscale = image_xscale; _oflash.image_speed = 0; _oflash.image_index = image_index; _oflash.image_yscale = image_yscale; _oflash.sprite_index = sprite_index; _oflash.depth = depth - 1; _oflash.target = id; return _oflash; }
();
14
snd_play(snd_boost);