Hi
I think you should program the enemies to be destroyed (or whatever you want, explosion, etc.) when the projectile reaches them, and also the projectile to disappear ...
[ The projectile is not bouncing when it hits the edges of the screen but it fires automatically if that happens. So I need help making it so that clicking the mouse while its active doesn't work. ]
I don't know if i understand Ok ... you want the projectile to bound on the edges? And it fires (from start) when it hits the edges? And you can fire while the projectile is active and you shouldn't?
What it seems is that, inside the main loop, the projectile is launched whenever it's not active (i.e., when it hits the edges), and if you click when it's active it is reseted ...
I would suggest 1) to create a matrix or a List if you want many projectiles to be at the same time, 2) to check, for firing a new one, that mouse button is released when you press it and the current number (index) is lower that the maximum projectiles there can be (or if you want just one, that it is not active when you press the button to be able to fire), 3) if you want them to bounce on the edges, then you have to detect when they hit, and change the angle as (180 - angle) if they hit the side edges
Perhaps i would be able to help better if you can explain with a bit more detail what it is about and what you want