Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_climb_climbableflower_Draw_0

(view raw script w/o annotations or w/e)
1
var blend = #010000;
2
var yoffset = 0;
3
if (con == -1)
4
{
5
    yoffset = 0;
6
    blend = 0.4 - (0.2 * array_get(
scr_platswap_yscale
scr_platswap_yscale

function
scr_platswap_yscale()
{ with (obj_platswap) return __transition_yscale; return [0, 1]; }
(), 0));
7
}
8
if (con == 0)
9
{
10
    yoffset = 2;
11
    blend = 0.9;
12
}
13
if (con == 1)
14
{
15
    yoffset = 0;
16
    blend = 0.7;
17
}
18
if (con == 2)
19
{
20
    yoffset = 10 * array_get(
scr_platswap_yscale
scr_platswap_yscale

function
scr_platswap_yscale()
{ with (obj_platswap) return __transition_yscale; return [0, 1]; }
(), 1);
21
    blend = #010000;
22
}
23
image_blend = merge_color(c_black, c_white, blend);
24
draw_sprite_ext(sprite_index, 0, x, y, image_xscale, (image_yscale * yoffset) / 20, 0, image_blend, 1);
25
draw_sprite_ext(sprite_index, 1, x, y + (20 * image_yscale) + (yoffset * image_yscale), image_xscale, -image_yscale, 0, image_blend, 1);