I want to add a bullet spray. I know how to correctly mirror bullets/player normally.
I added a variable to the bullet called spreadFactor and set it to 5. I was pretty pleased with myself to figure out the following, using 'random' for bullets angle of motion:
Events/Action:
PlayerProjectile: Set Bullet Angle Of Motion to;
random(-playerProjectile.spreadFactor, playerProjectile.spreadfactor)
This nicely sprays the bullets when firing, adjusting the angle up and down.
However, when I face to the LEFT, the bullets spray (and shoot) to the right still. Despite my variables setup which state which way the Player is mirrored and facing 180 or 0.
I have tried (most) of the obvious, including reading the manual, mirroring/direction/flipping and experimenting with Object Angle Vs Bullet Angle, which have had mixed results - so please do check the CAPX
I am running beta 210. Would this matter? I have noticed a Z Order Bug in this version- mainly that its unusable now.
I have a feeling its something really obvious that I am going to kick myself for, just a bit off today, and I would be forever grateful to the person who can help.
Thanks!