Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_sneo_heartattack_Create_0

(view raw script w/o annotations or w/e)
1
image_xscale = 1;
2
image_yscale = 1;
3
image_speed = 0;
4
speed = 5;
5
rand_angle = random(40);
6
heart_health = obj_spamton_neo_enemy.heart_health;
7
heart_speed_scaling = obj_spamton_neo_enemy.heart_speed_scaling;
8
con = 0;
9
shootcon = 0;
10
shoottimer = 0;
11
bustertimer = 0;
12
flyingheadtimer = 0;
13
defeatedtimer = 0;
14
difficulty = obj_spamton_neo_enemy.difficulty;
15
movementstyle = obj_spamton_neo_enemy.difficulty;
16
if (movementstyle == 0)
17
    movementstyle = 1;
18
attackcount = obj_spamton_neo_enemy.heart_attack_count;
19
direction = 163 + random(34);
20
shakex = 0;
21
shakey = 0;
22
aim = 0;
23
alarm[1]
 = 15;
gml_Object_obj_sneo_heartattack_Alarm_1.gml

scr_turntimer(obj_spamton_neo_enemy.heart_turntimer);
24
if (difficulty == 1)
25
    speed = 5;