Here's the code that should make the image.
This should work, right? yes, and it does, but only if it's called in a certain way.
This is called in the update method, near the bottom.
Of course, I should be able to just call it in the init method, but that doesn't work and in the off-chance that something weird is happening with the init method I just put it in the update method. When I render the collision map, nothing shows up.
But then, if I create a collision map in the render method as shown, the collision map shows up exactly how it's supposed to.
If I load the player's collision map in the render method or set the player's collision map to a collision map made in the SimpleGame class, it still doesn't work. Any help would be very appreciated, feel free to ask for more code. By the way, the Game Class is SimpleGame, MapHandler has the CollisionMap method, and Player is a class that holds mapChange().
Thanks in advance.
Edited by Eckhart, 12 August 2012 - 12:42 PM.