Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_burgerpants_scootintoposition_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    image_speed = timer / 65 / 4;
4
    image_speed = clamp(image_speed, 0, 0.5);
5
    timer++;
6
    if (timer == 1)
7
    {
8
        friction = 0.8;
9
        hspeed = -5;
10
        makedust = true;
11
    }
12
    if (timer == 15)
13
    {
14
        hspeed = -7;
15
        makedust = true;
16
    }
17
    if (timer == 40)
18
    {
19
        hspeed = -9;
20
        makedust = true;
21
    }
22
    if (timer == 65)
23
    {
24
        vspeed = 5;
25
        makedust = true;
26
    }
27
    if (timer == 85)
28
    {
29
        vspeed = 7;
30
        makedust = true;
31
    }
32
}
33
if (makedust == true)
34
{
35
    makedust = false;
36
    snd_play(snd_wing);
37
    dust = instance_create(x + 43, y + 59, obj_afterimage);
38
    dust.sprite_index = spr_dust1;
39
    dust.image_speed = 0.25;
40
    dust.fadeSpeed = 0.25;
41
    dust.hspeed = 1;
42
    dust.vspeed = -2;
43
    dust.gravity = 1;
44
}