Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rouxls_ch3_enemy_Draw_0

(view raw script w/o annotations or w/e)
1
if (bowanim == true)
2
{
3
    if (i_ex(obj_confetti))
4
        depth = obj_confetti.depth - 10;
5
    if (i_ex(obj_confetti_overworld))
6
        depth = obj_confetti_overworld.depth - 10;
7
    danceindex += (1/3);
8
    if (danceindex > 2)
9
        danceindex = 2;
10
    image_xscale = -2;
11
    draw_monster_body_part(spr_rouxls_chef_respect, danceindex, x + 104, y);
12
}
13
else if (danceanim == true)
14
{
15
    danceindex += (1/3);
16
    draw_monster_body_part(spr_rouxls_chef_dance, danceindex, x, y);
17
}
18
else if ((cardsummon == true && cardsummontimer > 0) || (intro >= 0.75 && intro < 1))
19
{
20
    if (intro < 3)
21
    {
22
        if (danceindex < 2)
23
            danceindex += (1/3);
24
        draw_monster_body_part(spr_rouxls_chef_card, danceindex, x, y);
25
    }
26
    else
27
    {
28
        if (danceindex < 2)
29
            danceindex += (1/3);
30
        if (danceindex == 1)
31
        {
32
            
scr_confetti
scr_confetti

function
scr_confetti(arg0, arg1, arg2, arg3)
{ var __popper = instance_create(arg0, arg1, obj_confetti_popper); arg3 = floor(arg3); __popper.direction = arg2; __popper.count = arg3; return __popper; } function scr_confetti_ext(arg0, arg1, arg2, arg3, arg4 = 20, arg5 = 200, arg6 = 340, arg7 = 0, arg8 = 0, arg9 = 1000100) { arg3 = floor(arg3); var __i = 0; for (__i = 0; __i < arg3; __i++) { var _d = instance_create(arg0, arg1, obj_confetti_overworld); with (_d) { direction = random_range(arg2 - 20, arg2 + 20); height = arg4; miny = arg5; maxy = arg6; topdrop = arg7; bottomdrop = arg8; maxDepth = arg9; } } } function scr_confetti_preload(arg0, arg1, arg2, arg3, arg4 = 20, arg5 = 200, arg6 = 340, arg7 = 0, arg8 = 0, arg9 = 1000100) { arg3 = floor(arg3); var __i = 0; for (__i = 0; __i < arg3; __i++) { var _d = instance_create(arg0, arg1, obj_confetti_overworld); with (_d) { direction = random_range(arg2 - 20, arg2 + 20); height = arg4; miny = arg5; maxy = arg6; topdrop = arg7; bottomdrop = arg8; maxDepth = arg9; preload = 1; visible = false; } } } function scr_confetti_fire() { with (obj_confetti_overworld) { if (preload) { preload = 0; speed = preload_speed; preload_speed = 0; visible = true; } } }
(x + 0, y + 50, 150, 5);
33
            snd_play(snd_wing);
34
        }
35
        draw_monster_body_part(spr_rouxls_chef_card3, danceindex, x, y);
36
    }
37
}
38
else
39
{
40
    
scr_enemy_drawhurt_generic
scr_enemy_drawhurt_generic

function
scr_enemy_drawhurt_generic()
{ if (state == 3 && hurttimer >= 0) draw_sprite_ext(hurtsprite, 0, x + shakex + hurtspriteoffx, y + hurtspriteoffy, 2, 2, 0, image_blend, 1); }
();
41
    
scr_enemy_drawidle_generic
scr_enemy_drawidle_generic

function
scr_enemy_drawidle_generic(arg0)
{ if (state == 0) { fsiner += 1; siner += arg0; thissprite = idlesprite; if (global.mercymod[myself] >= global.mercymax[myself]) thissprite = sparedsprite; draw_monster_body_part(thissprite, siner, x, y); } }
(0);
42
}
43
if (becomeflash == 0)
44
    flash = 0;
45
becomeflash = 0;