Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_chefs_coinvfx_Destroy_0

(view raw script w/o annotations or w/e)
1
obj_chefs_game.scorepoints += 1;
2
with (instance_create(x, y, obj_chefs_vfx))
3
{
4
    depth = other.depth - 1;
5
    speed = choose(2, 3, 4);
6
    direction = irandom(360);
7
    sprite_index = spr_vfx_twinkle;
8
    image_index = 0;
9
    image_xscale = choose(-2, 2);
10
    die_animend = true;
11
    audio_stop_sound(sfx_coin_chefs);
12
    snd_play(sfx_coin_chefs);
13
}