Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadowman_sharpshoot_cursor_Draw_0

(view raw script w/o annotations or w/e)
1
if (!i_ex(obj_battlecontroller) || (i_ex(obj_battlecontroller) && obj_battlecontroller.victory == true))
2
    exit;
3
siner++;
4
draw_sprite_ext(sprite_index, image_index, x + (sin(siner / 4) * 2), y + (cos(siner / 4) * 2), image_xscale + 0.5, image_yscale + 0.5, image_angle, image_blend, image_alpha / 4);
5
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha / 3);
6
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale - 0.5, image_yscale - 0.5, image_angle, image_blend, image_alpha / 1.5);
7
if (disableactui == true)
8
    exit;
9
draw_set_halign(fa_center);
10
scr_84_set_draw_font
scr_84_set_draw_font

function
scr_84_set_draw_font(arg0)
{ global.chemg_font = arg0; draw_set_font(
scr_84_get_font(arg0));
}
("mainbig");
11
draw_text(camerax() + (camerawidth() / 2), cameray() + 10, stringsetloc(
AMMO
"AMMO", "obj_shadowman_sharpshoot_cursor_slash_Draw_0_gml_10_0"
));
12
draw_text((camerax() + (camerawidth() / 2)) - 15, cameray() + 43, string(ammo) + " x");
13
draw_sprite(spr_shadowman_sharpshoot_heart, 0, camerax() + (camerawidth() / 2) + 26, cameray() + 62);
14
draw_set_halign(fa_left);