Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_incense_cloud_manager_Other_10

(view raw script w/o annotations or w/e)
1
for (c = 0; c < 20; c++)
2
{
3
    with (instance_create(x + lengthdir_x(240 * sin_power, c * 18), y + lengthdir_y(240 * cos_power, c * 18), obj_incense_cloud))
4
    {
5
        image_alpha = -other.c * 0.025;
6
        distance = 240;
7
        current_angle = point_direction(x, y, other.x, other.y);
8
        image_angle = current_angle - 90;
9
        sprite_index = spr_incense_cloud;
10
        var extender = 0;
11
        with (obj_dbulletcontroller)
12
        {
13
            if (type == 111)
14
                extender = 15;
15
        }
16
        if ((other.c % 2) == 0)
17
        {
18
            ratio = 1;
19
            distance_goal = 55 - irandom(5);
20
            distance_goal += (15 * other.sameattack);
21
        }
22
        else
23
        {
24
            ratio = (0.66 + random(0.33)) * 2;
25
            distance_goal = 65 - irandom(10);
26
            distance_goal += (15 * other.sameattack);
27
        }
28
        distance_goal += extender;
29
    }
30
}