Hey everyone! I am back with another few questions on a Tank Wars project I am working on. First, my tanks don't always stop when moving through walls. In order to fix this, I made them turn when they hit a wall, but I would much rather have it where they just stop moving when they hit the walls (my way doesn't work anyways). Second, I have a similar issue with the cannonballs I shoot, except sometimes the cannonballs zig zag through a single wall before exiting on the end of that wall. Finally, my right tank dies when I shoot a cannonball from it even though the left tank does not. The two codes for each tank are exactly identical (see Cannonball class).
If anyone could suggest any improvements to the code to make these changes and/or answer my questions, I would be so grateful. I don't have much experience, so specific answers are better. I have been working for many, many hours to no avail...
Link (May need to download):
