Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_heartattack_old_Step_2

(view raw script w/o annotations or w/e)
1
if (bustertimer >= 100 && bustertimer < 159)
2
{
3
    with (obj_spamton_neo_enemy)
4
    {
5
        if (instance_exists(obj_heart))
6
        {
7
            armangle = point_direction(x + partxoff[1], y + partyoff[1], obj_heart.x + 8, obj_heart.y + 8) + 90;
8
            aimmode = 1;
9
            armaim = armangle;
10
        }
11
    }
12
    with (obj_sneo_biglaser)
13
    {
14
        x = obj_spamton_neo_enemy.x + obj_spamton_neo_enemy.partx[1] + obj_spamton_neo_enemy.partxoff[1] + lengthdir_x(obj_spamton_neo_enemy.armlength, obj_spamton_neo_enemy.partrot[1] - 93);
15
        y = obj_spamton_neo_enemy.y + obj_spamton_neo_enemy.party[1] + obj_spamton_neo_enemy.partyoff[1] + lengthdir_y(obj_spamton_neo_enemy.armlength, obj_spamton_neo_enemy.partrot[1] - 93);
16
    }
17
}