Timer issue for enemy fire FIX

@Sena
I was doing this
And you just deleted topic
I gonna leave it for others to learn from it

Hi! @ZeroX4 thank you so much! I couldn’t fix it before, but I’ve found another solution. I adjusted the enemy fire bullet behavior and changed the firing cooldown, if this helps anyone in this topic. Now I have another problem, I can hear the enemy fire off-screen, but the fire doesn’t come towards the player, I can only hear the sound. I use 0 and 180


angle for the shots. I increased the pixel between the player and the enemy but it doesn’t work. The enemy needs to be on-screen. The enemies have fire bullet behaviors only and the enemy fire has destroy outside behavior.

I simply removed the destroy outside behavior and it worked hahah. Enemy starts shooting when I’m below 1200 pixels. Sorry I’m new, and thanks for the help

1 Like

1 - WAT is your goal? SOLVED ALREADY
A - Enemies SHOULD NOT shoot off screen?
B - Enemies SHOULD shoot off screen but also should be heard?

2 - What i see there is only angle 180 so you are shooting left

3 - Gdevelop is case sensitive so in your 2nd event look that as point you have fire2 and Fire2 so which is it?

4 - What is the point of checking if enemy just fired to play sound when you can put that sound action into event where enemy just fire?