Need help implementing shooting

Started by
12 comments, last by klrr 9 years, 9 months ago
Please also post the move() method, it may be where the problem lies.
Advertisement
If using angles, read about atan2()
This is a usual math lib method that is a life saver :)
That's how I handled my bullets.
also should call your function checkAlive (typo) and should not contain magic numbers (worst case make them a global constant for now so you keep your eyea on them)

Thanks for all help, the problem was that I used the mouse position in the screen resolution, not as game world coordinates.

This topic is closed to new replies.

Advertisement