Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_queenvaseonwheels_Draw_0

(view raw script w/o annotations or w/e)
1
scr_depth_alt
scr_depth_alt

function
scr_depth_alt()
{ depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }
();
2
draw_sprite(spr_thrash_wheel, image_index, x - 8, (y - 8) + (active * 8));
3
draw_self();
4
draw_sprite(spr_thrash_wheel, image_index, x + 8, (y - 8) + (active * 8));
5
tiltAmount = 0;
6
if ((startX - x) > 325)
7
    tiltAmount = 30;
8
if ((startX - x) < -325)
9
    tiltAmount = -30;
10
image_angle = tiltAmount;