Deltarune script viewer

← back to main script listing

gml_Object_obj_sneo_heartattack_old_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (con == 3)
2
    return;
3
shakex = 6
4
shakey = 6
5
heart_health -= other.damage
6
if (other.damage > 2)
7
    global.turntimer -= obj_spamton_neo_enemy.heart_hurt_timer_reduction_bigshot
8
else
9
    global.turntimer -= obj_spamton_neo_enemy.heart_hurt_timer_reduction
10
snd_play(snd_damage)
11
with (other)
12
    event_user(0)
13
if (heart_health < 1)
14
{
15
    con = 3
16
    shootcon = 0
17
    speed = 0
18
    if (global.turntimer > 2)
19
        global.turntimer = 37
20
}