Bullet not flipped properly

It goes like this: I managed to make multiple enemy shoots bullet upon having their line of sight colliding with the player. I noticed that the bullet doesn’t flip properly when 2 or more enemies shoot. Here are some screenshots:


The bullet fired from the enemy on the left, is not flipped.

Ditto, but it’s from the enemy on the right.

This is my event editor

In the first part, you’re flipping the bullet before creating it.
image

Somehow, I still can’t figuring out how to fix it. Can you help?

You should swap the order of the two actions, you cannot flip something that does not exist.
Or do you mean you swapped them already and it didn’t fix it?

Here are some screenshot:



It seems that nothing works or I’m still missing something.

Well, you are using too many “for each”, it might be causing issues.
Also, this order seems reversed too:
image

You should leave the flip action in the same block as the firing action, just make sure to place it after the firing.

You should leave the flip action in the same block as the firing action, just make sure to place it after the firing.

I don’t really understand that. Can you explain a little bit more?

I mean, like this:
image
And not like this:
image

It didn’t work, unfortunately

The problem is your bullet angle. You’re setting it to between -2 and 2, so it’ll always face to the right.

To get the slight mis-aiming I think you’re trying to achieve, you need to set the bullet variance to 2 in the EnemyBullet’s bullet behaviour, and use the angle 0 or 180 when firing the bullet :

I try it out, but, still not working. Here’s my code:

Of course not, you’re setting both bullets to face 0 degrees. How can you expect them to face different ways? The bullet firing to the right will need to be 0 degrees, the one to the left will need to be 180 degrees.

I found that it has the opposite effect. I’ll do some more testing, then.

TRY THIS