Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_rabbick_enemy_Other_12

(view raw script w/o annotations or w/e)
1
dustparticle = instance_create(x + random(sprite_width - 10) + 10, y + 20 + random(sprite_height - 20), obj_animation);
2
with (dustparticle)
3
{
4
    sprite_index = spr_rabbick_dustorb;
5
    speed = 6;
6
    image_index = 1;
7
    direction = 10 + random(70);
8
    image_speed = 0.5;
9
    image_xscale = 2;
10
    image_yscale = 2;
11
    gravity_direction = 0;
12
    gravity = 0.7;
13
    friction = 0.4;
14
    image_alpha = 0.5;
15
    depth = 15;
16
}
17
if (blown == 1)
18
{
19
    with (dustparticle)
20
    {
21
        image_alpha = 1;
22
        depth = -10;
23
    }
24
}