Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_tiny_susie_axe_Create_0

(view raw script w/o annotations or w/e)
1
image_index = 1;
2
image_blend = c_yellow;
3
image_alpha = 0.5;
4
image_xscale = 0.4;
5
image_yscale = 0.4;
6
target = obj_spamton_neo_enemy;
7
var dist = 9999;
8
if (instance_exists(obj_pipis_bullet))
9
{
10
    if (distance_to_object(instance_nearest(x, y, obj_pipis_bullet)) < dist)
11
        target = instance_nearest(x, y, obj_pipis_bullet);
12
}
13
if (instance_exists(obj_pipis_egg_bullet))
14
{
15
    if (distance_to_object(instance_nearest(x, y, obj_pipis_egg_bullet)) < dist)
16
        target = instance_nearest(x, y, obj_pipis_egg_bullet);
17
}
18
if (instance_exists(obj_sneo_heartattack))
19
{
20
    if (distance_to_object(instance_nearest(x, y, obj_sneo_heartattack)) < dist)
21
        target = instance_nearest(x, y, obj_sneo_heartattack);
22
}
23
if (instance_exists(obj_sneo_heatattack_bullet))
24
{
25
    if (distance_to_object(instance_nearest(x, y, obj_sneo_heatattack_bullet)) < dist)
26
        target = instance_nearest(x, y, obj_sneo_heatattack_bullet);
27
}
28
if (instance_exists(obj_sneo_lilguy))
29
{
30
    if (distance_to_object(instance_nearest(x, y, obj_sneo_lilguy)) < dist)
31
        target = instance_nearest(x, y, obj_sneo_lilguy);
32
}
33
if (instance_exists(obj_sneo_lilguy_bullet))
34
{
35
    if (distance_to_object(instance_nearest(x, y, obj_sneo_lilguy_bullet)) < dist)
36
        target = instance_nearest(x, y, obj_sneo_lilguy_bullet);
37
}
38
if (instance_exists(obj_sneo_wireheart))
39
{
40
    if (distance_to_object(instance_nearest(x, y, obj_sneo_wireheart)) < dist)
41
        target = instance_nearest(x, y, obj_sneo_wireheart);
42
}
43
if (instance_exists(obj_sneo_faceattack_target))
44
{
45
    if (distance_to_object(instance_nearest(x, y, obj_sneo_faceattack_target)) < dist)
46
        target = instance_nearest(x, y, obj_sneo_faceattack_target);
47
}
48
if (instance_exists(obj_regularbullet))
49
{
50
    if (distance_to_object(instance_nearest(x, y, obj_regularbullet)) < dist)
51
        target = instance_nearest(x, y, obj_regularbullet);
52
}