Hi All
Making a platform game and I'm quite far down the line as I have a working map, main charater, score and mini map working. I have a map thats 180x180 tiles big (that wraps) and the viewable area is 15x10. Problem is the game has +-100 bad guys scattered around the map that but I only want to worry about the ones close by (ie move them, see if they fall off platforms etc.) but as it stands I have to go through all hundered every frame. Is there an effecient method I can use to cull the guys I'm checking on so that the bad guys outside the viewable area are skipped?
Thanks in advance.
Making a platform game and I'm quite far down the line as I have a working map, main charater, score and mini map working. I have a map thats 180x180 tiles big (that wraps) and the viewable area is 15x10. Problem is the game has +-100 bad guys scattered around the map that but I only want to worry about the ones close by (ie move them, see if they fall off platforms etc.) but as it stands I have to go through all hundered every frame. Is there an effecient method I can use to cull the guys I'm checking on so that the bad guys outside the viewable area are skipped?
Thanks in advance.