Hey everyone, I have a 2D tile based game where a character can shoot a couple different weapons at stationary enemies. Pretty much everything is stored in ArrayLists, bullets, enemies, collidable tiles, etc…but for some reason when i run my character around holding down the fire button for the machine gun, after a while the game begins to lag, and I cant quite figure out why. The bullets are removed after they hit the wall so im just lost as to what could be the problem.
Sorry, I do realize that I am giving very little information, but if you all could just post some common causes of this or what you think it could be then i could check it out, because otherwise it would be a large amount of code to paste here…
Any comments are appreciated.