thsj2022/objects/obj_player_cirno/Collision_obj_enemy_parent.gml

18 lines
351 B
Plaintext
Raw Normal View History

2022-08-22 23:53:47 -07:00
if (invuln <= 0) {
hp -= 1;
invuln = 90;
target_speed = 12;
dspeed = 12;
target_direction = point_direction(other.x,other.y,x,y);
direction = target_direction;
audio_play_sound(snd_ow, 10, false);
}
if (hp < 1) {
global.cutscene_mode = false;
global.cutscene_number = CUTSCENE_NOSCENE;
global.dialogue_mode = false;
room_goto(rm_game);
}