Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_animtester_lanino_Draw_0

(view raw script w/o annotations or w/e)
1
preset = 0;
2
shoulders = 4525;
3
legs = 4005;
4
chest = 3079;
5
head = 2590;
6
leftarm = 3840;
7
lefthand = 1331;
8
shouldersx = x + 40;
9
shouldersy = y + 56;
10
shoulderflameindex += 0.125;
11
legsx = x + 42;
12
legsy = y + 122;
13
chestx = x + 40;
14
chesty = y + 76;
15
headx = x + 48;
16
heady = y + 50;
17
leftarmx = x + 34;
18
leftarmy = y + 58;
19
animsiner++;
20
if (preset == 0)
21
{
22
    var boby = abs(sin(animsiner / 6) * -2) * -1;
23
    chesty += (boby * 1.5);
24
    shouldersy += (boby * 1.5);
25
    leftarmy += (-8 + (boby * 6));
26
    heady += (boby * 0.5);
27
}
28
lefthandx = leftarmx - 24;
29
lefthandy = leftarmy + 12;
30
if (!keyboard_check(ord("H")))
31
{
32
    draw_sprite_ext(leftarm, 0, leftarmx, leftarmy, 2, 2, 0, image_blend, image_alpha);
33
    draw_sprite_ext(legs, 0, legsx, legsy, 2, 2, 0, image_blend, image_alpha);
34
    draw_sprite_ext(chest, 0, chestx, chesty, 2, 2, 0, image_blend, image_alpha);
35
    draw_sprite_ext(shoulders, shoulderflameindex, shouldersx, shouldersy, 2, 2, 0, image_blend, image_alpha);
36
    draw_sprite_ext(head, 0, headx, heady, 2, 2, 0, image_blend, image_alpha);
37
    draw_sprite_ext(lefthand, 0, lefthandx, lefthandy, 2, 2, 0, image_blend, image_alpha);
38
}