Okay so the bouncing works but the way the bullet picks a new enemy doesn't.
The ricochet bullet won't travel towards a random enemy. Most of the time it flies of the screen in a random direction. The bullet has to fly towards an enemy that is on screen but it feels like it flies towards something that is not on screen... I don't know.
Because I have 4 different enemies I tried this:
choose(angle(Bullet_8.x,Bullet_8.y,Enemy_1.x,Enemy_1.y),angle(Bullet_8.x,Bullet_8.y,Enemy_2.x,Enemy_2.y),angle(Bullet_8.x,Bullet_8.y,Enemy_3.x,Enemy_3.y),angle(Bullet_8.x,Bullet_8.y,Enemy_4.x,Enemy_4.y))
So the bouncing bullet will choose between enemy 1, 2, 3 and 4. But this doesn't work either.
What am I missing? I feel like I am very close to a solution but the bullet just won't behave like I want it to.
:(