sunflowers-in-the-rain/objects/obj_marisa/Collision_obj_enemy_shot_pa...

19 lines
352 B
Plaintext
Raw Normal View History

2022-06-30 22:16:34 -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);
}