Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_car_crash_Step_0

(view raw script w/o annotations or w/e)
1
if (x <= (camerax() - 200))
2
    cleanup = true;
3
if (crash)
4
{
5
    cleanup_timer--;
6
    if (cleanup_timer <= 0)
7
    {
8
        crash = false;
9
        cleanup = true;
10
    }
11
}
12
if (cleanup)
13
{
14
    cleanup = false;
15
    if (explosion != -1)
16
        instance_destroy(explosion);
17
    instance_destroy();
18
}