Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_dojo_shaveeffect_Step_0

(view raw script w/o annotations or w/e)
1
if (wait)
2
    exit;
3
if (friction > 0 && speed <= end_speed)
4
{
5
    speed = end_speed;
6
    friction = 0;
7
}
8
if (friction == 0)
9
{
10
    sparkle_timer++;
11
    if (sparkle_timer == 8)
12
        image_speed = 1;
13
}
14
if (image_index == (image_number - 1))
15
    instance_destroy();