Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_overworld_lanternflame_arc_Draw_0

(view raw script w/o annotations or w/e)
1
var shadow_scale;
2
if (bouncy == 1)
3
    shadow_scale = lerp(1.2, 0.6, abs(fakey) / 100);
4
else
5
    shadow_scale = lerp(1, 0.6, abs(fakey) / 200);
6
if (con != 0)
7
    draw_sprite_ext(spr_fire_shadow, 0, x - 1, y - 2, shadow_scale, shadow_scale, 0, c_white, 0.5);
8
draw_sprite_ext(sprite_index, image_index, x, y + fakey, image_xscale, image_yscale, 0, c_white, image_alpha);