Problem: The fire hose would not show the correct angle when the mouse was pointing below where the player stood. When the mouse would pass under the players position on the Y axis it would cause the hose to angle upwards and for the balls to continue to spawn in that upwards direction.
Impact: The player could not shoot down and the animation would look improper if the player ever moved his or her mouse below the fireman.
Solution: Implemented an check in the update for checking the mouse position. Created a true, false value that would show where the mouse is on the screen relative to the player. Next in the render and add bodies calls we would jus reverse the angle in the signature to show the correct angle.
No comments:
Post a Comment