Original Post
Ok i had my game working perfectly before i changed my program to be more effiecient, now im just struggling! Ok this is wat my problem is; Before i made the changes, every frame my game would draw the entire map to the buffered image and then draw the bullets to that image. Then in the main paint method it would just crop that image. I did this because it made it very simple to paint the bullets where they are supposed to be; Algorithm paint bullet at x + cropX, y + cropY *paints that bullet to that exact position on the map, not the position u clicked on the screen. So if i shot a bullet at say a tree and then moved the bullet would still travell to that position on the map, not on the screen. Now that i have changed my program because ive got advice that croping is not as efficient as just drawing the needed tiles, i have no idea how to draw the bullet to the position clicked on the map, not the position clicked on the screen. Grrrr its hard to explain please see below: ||||||||||||||||||||||||||| ||................................|| ||..........P.....................|| ||..........B.....................|| ||................................|| ||................................|| ||..........T.....................|| ||................................|| ||................................|| ||||||||||||||||||||||||||| n this diagram the bullet (B) is travelling from the player (P) to the tree(T), now imagine this, the player moves one tile to the right; ||||||||||||||||||||||||||| ||................................|| ||................................|| ||............P.....................|| ||................................|| ||............B.....................|| ||................................|| ||........T.......................|| ||................................|| ||||||||||||||||||||||||||| The bullet is still going to the position u clicked on the screen, but not the position u clicked on the map. Please give me any hints or tips lol i had it all working so perfectly, but ive always had this thing, i'd rather do things the right way, than the wrong way. I have seen a major improvement in the frames per second though, hopefully i can work this out though, haha also now i hve no idea how to draw the oposition player. Do u think i should go back to my original way? Is cropping not that innieffiecient? Or should i use the way im currently trying to program? Thx in advance, and sorry about the long post lol :) Nick.