sunflowers-in-the-rain/objects/obj_enemy_shooter/Step_1.gml

12 lines
281 B
Plaintext
Raw Permalink Normal View History

2022-06-30 22:16:34 -07:00
shootdelay--;
if (shootdelay <= 0) {
shootdelay = 40;
audio_play_sound(snd_enemy_bullet, 10, false);
shoot = instance_create_layer(x, y, "lyr_ground", obj_enemy_shooter_bullet);
with (shoot) {
speed = 3;
direction = point_direction(x, y, obj_marisa.x, obj_marisa.y);
}
}