Hi everyone, I need help to fix the bullet angle issue after load function.
I have setup a capx in this link - drive.google.com/file/d/0BxVip1HWK0ETelR2eUhWcmo3UUU/view
To help troubleshoot the issue via capx:
[Run 'Menu' Layout]
[Click on New Game button]
The monster is spawning bullets with set angle toward Player.X, Player.Y
Move player around via arrow keys on keyboard to see bullets movement.
[Refresh the browser to go back to 'Menu' Layout]
[Click on Load Game button]
[ISSUE] All bullets on screen would re-set angle towards Player.X, Player.Y every time the monster spawns a new bullet.
The system will pick all bullets on screen towards angle, is not intended (Unintended homing effect on player). Intend is to set the bullet towards player once per bullet.
Same with player shooting bullets, the angle is not correct (Spacebar to shoot).
Perhaps the way which monster bullet target the player should not be coded this way. Any solutions or better way of coding is very much appreciated.