Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chef_laser_easteregg2_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
y = (ystart - 2) + random(4);
3
if ((timer % 2) == 0 && timer > 60)
4
{
5
    anim = instance_create(130 + irandom(330), 54 + irandom(100), obj_animation);
6
    anim.sprite_index = spr_realisticexplosion;
7
    anim.image_alpha = 0;
8
    snd_play_x(snd_explosion_firework_bc, 0.4, 1);
9
    instance_create(x, y, obj_shake);
10
}
11
if (timer > 70)
12
{
13
    image_xscale = lerp(2, 8, (timer - 70) / 10);
14
    image_yscale = lerp(2, 8, (timer - 70) / 10);
15
}
16
if (timer == timermax)
17
    instance_destroy();