Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_plat_enm_book_simple_Destroy_0

related scripts: Alarm_0Collision_obj_plat_playerCreate_0Destroy_0 Step_0

(view raw script w/o annotations or w/e)
1
if (!initialized)
2
    exit;
3
if (hit)
4
{
5
    with (instance_create_depth(x, y, depth, obj_plat_vfx))
6
    {
7
        sprite_index = spr_enemy_book_simple;
8
        image_yscale = -2;
9
        image_speed = 1;
10
    }
11
    with (instance_create_depth(x, y, depth, obj_plat_vfx))
12
    {
13
        sprite_index = spr_smokepuff;
14
        image_speed = 2;
15
    }
16
    
scr_flower_die
scr_flower_die

function
scr_flower_die(arg0 = 2, arg1 = 6, arg2 = 5, arg3 = 0, arg4 = true)
{ if (arg0 >= 3) { with (instance_create_depth(x, y, depth, obj_flowerdie_big)) { sprite_index = other.sprite_index; image_index = other.image_index; image_angle = other.image_angle; image_xscale = other.image_xscale; image_yscale = other.image_yscale; image_speed = other.image_speed; coindrops = arg3; use_image_speed = arg4; if (arg0 == 4) { wall_smash = true; if (other.image_xscale < 0) image_angle += 180; } } } else { with (instance_create_depth(x, y, depth, obj_flowerdie)) { speed = arg2; if (arg0 == 1) { sprite_index = spr_falling_petal; image_blend = c_gray; image_xscale = 2; image_yscale = 2; } amount = arg1; size = arg0; } if (arg0 == 1) instance_create_depth(x, y, depth - 5, obj_flowerdie_mini); if (arg3 == 0) exit; scr_plat_makecoins(x, y, -coindrops, 90, 90, 8, 4, depth); coindrops = 0; } }
(1, 6, 5);
17
}
18
with (__spawner)
19
    instance_destroy();