Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_lerptest_Draw_0

(view raw script w/o annotations or w/e)
1
x = 200;
2
y = 80;
3
if (con == 0)
4
{
5
    pingponglerp += 0.02;
6
    if (pingponglerp >= 1)
7
    {
8
        pingponglerp = 1;
9
        con = 1;
10
    }
11
}
12
if (con == 1)
13
{
14
    marker = instance_create(x, y, obj_marker);
15
    marker.sprite_index = spr_kris_chef;
16
    scr_lerp_var_instance(marker, "x", 5, 640, 80, 2, "out");
17
    pingponglerp -= 0.02;
18
    if (pingponglerp <= 0)
19
    {
20
        pingponglerp = 0;
21
        con = 0;
22
    }
23
}
24
var xspace = 55;
25
for (var i = -3; i < 8; i++)
26
{
27
    draw_set_color(c_white);
28
    draw_sprite_ext(spr_spadebullet, 0, x + (i * xspace), y + lerp_ease_out(0, 90, pingponglerp, i), image_xscale, image_yscale, image_angle, image_blend, image_alpha);
29
    draw_sprite_ext(spr_spadebullet, 0, x + (i * xspace), y + 190, image_xscale, image_yscale, image_angle + lerp_ease_out(0, 180, pingponglerp, i), image_blend, image_alpha);
30
    draw_sprite_ext(spr_spadebullet, 0, x + (i * xspace), y + 274, lerp_ease_out(0, 1, pingponglerp, i), lerp_ease_out(0, 1, pingponglerp, i), image_angle, image_blend, image_alpha);
31
    draw_text(x + (i * xspace), 25, string(i));
32
    draw_text(x + (i * xspace), 420, string(i));
33
}
34
draw_set_font(fnt_ja_dotumche);
35
draw_set_color(c_white);
36
draw_line_width(0, 220, 640, 220, 2);
37
draw_text(5, 222, "y + lerp_ease_out()");
38
draw_line_width(0, 240, 640, 240, 2);
39
var space = 80;
40
draw_set_color(c_white);
41
draw_line_width(0, 220 + space, 640, 220 + space, 2);
42
draw_text(5, 222 + space, "image_angle+lerp_ease_out()");
43
draw_line_width(0, 240 + space, 640, 240 + space, 2);
44
space = 170;
45
draw_set_color(c_white);
46
draw_line_width(0, 220 + space, 640, 220 + space, 2);
47
draw_text(5, 222 + space, "image_xscale=lerp_ease_out()");
48
draw_line_width(0, 240 + space, 640, 240 + space, 2);
49
draw_line_width(0, 410, 640, 410, 2);
50
draw_line_width(0, 48, 640, 48, 2);