Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_mauswheel_tasquemanager_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    if (timer < 10)
4
        timer++;
5
    y = lerp_ease_in(ystart, cameray() + 233, timer / 10, 0.5);
6
    if (timer == 10)
7
    {
8
        y = cameray() + 233;
9
        con = 1;
10
        timer = 0;
11
        snd_play(snd_impact);
12
    }
13
}
14
if (con == 1)
15
{
16
    if (timer < 10)
17
        timer++;
18
    if (timer == 1)
19
    {
20
        image_xscale = -2.3;
21
        image_yscale = 1.7;
22
    }
23
    image_xscale = lerp_ease_in(-2.3, -2, timer / 10, 0.5);
24
    image_yscale = lerp_ease_in(1.7, 2, timer / 10, 0.5);
25
}
26
if (x > (camerax() + camerawidth() + 80) || !i_ex(obj_battlecontroller))
27
    instance_destroy();