Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_jackolantern_Draw_0

(view raw script w/o annotations or w/e)
1
var shakey = 0;
2
var shakex = 0;
3
if (image_xscale > 1)
4
{
5
    shakex = choose(0, 1, -1);
6
    shakey = choose(0, 1, -1);
7
}
8
if (draw_hand == 1)
9
{
10
    hand_x = obj_your_tutu.x;
11
    hand_y = obj_your_tutu.y;
12
}
13
if (draw_hand)
14
    draw_sprite(spr_jackohandtern, 0, hand_x, hand_y);
15
var _squish = 1 - abs(1 - squish);
16
if (squish != 1)
17
{
18
    for (var _x = 0; _x < sprite_width; _x += 2)
19
        draw_sprite_part(sprite_index, image_index, _x, 0, 2, sprite_height, x + ((_x - sprite_xoffset) * _squish), y - sprite_yoffset);
20
}
21
else
22
{
23
    draw_sprite_ext(sprite_index, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
24
}
25
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
26
    draw_text(16, 16, tutu);