So I created a map using Tiled. I loaded into my game world.
I went through each tile and layer and added the objects I needed such as the entities and the collision objects.
It renders them all correctly and all works dandy except when I move my camera around it doesn't do it anywhere else other than the width of the frame. It is missing 3/4s of the map.
I use map.render(0,0) and it renders the rest of the map, but the entities aren't there, no hit box, etc. Look below at images:
SOLVED!!!
Even if I don't add the background as an image and the trees and stuff as an image, and just use map.render(0,0) it does the same thing. If I use this code and not the map.render(0,0) does the same thing. Not sure what is wrong? Any way to get this working? Thanks
|