Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_ball_Draw_0

(view raw script w/o annotations or w/e)
1
var shakeamt = 0;
2
if (drawshake == 8)
3
    shakeamt = 8;
4
if (drawshake == 7)
5
    shakeamt = -8;
6
if (drawshake == 6)
7
    shakeamt = 6;
8
if (drawshake == 5)
9
    shakeamt = -6;
10
if (drawshake == 4)
11
    shakeamt = 4;
12
if (drawshake == 3)
13
    shakeamt = -4;
14
if (drawshake == 2)
15
    shakeamt = 2;
16
if (drawshake == 1)
17
    shakeamt = -2;
18
if (speed > 1)
19
    image_angle = lerp(image_angle, round(-round(x) / 12) * 12, 0.5);
20
draw_set_color(c_white);
21
draw_set_alpha(1);
22
if (fakeheight < -3)
23
    draw_sprite_ext(spr_susiezilla_shadow, 0, x, y + (sprite_height / 2), min(0.25 + abs(fakeheight / 40), 0.5), 1, 0, image_blend, min((0.25 * abs(fakeheight / 28)) + 0.25, 0.5));
24
draw_sprite_ext(sprite_index, image_index, round(x) + shakeamt, round(y) + fakeheight, image_xscale, image_yscale, image_angle, image_blend, image_alpha);