Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_item_throw_Step_0

(view raw script w/o annotations or w/e)
1
inst = instance_create_depth(x + 1, y + 1, depth + 1, obj_gerson_item_throw_particle);
2
if (image_index == 5)
3
{
4
    if (image_angle == 0)
5
        image_angle = 45;
6
    else
7
        image_angle = 0;
8
    image_index = 0;
9
}
10
if (speed > 0.8)
11
{
12
    speed -= 0.2;
13
    direction -= 2;
14
}
15
timer++;
16
if (timer == 8)
17
    instance_create_depth(x, y, depth - 1, obj_gerson_item_steal_anim);