Game Development Community

iTGB 1.2 Bug: Tilemaps not displaying

by Matthew Klundt · in iTorque 2D · 05/10/2009 (2:05 pm) · 9 replies

I'm using iTGB 1.2 and my tilemaps are not displaying when in the center of the screen. When the camera is moved off-center, the tilemap then appears.

For example, when the main character walks to the right or left the tilemap does not show, but after walking diagonally for about 60 pixels or so, the tilemap then shows up in the place where it should be. When I walk the character back to the middle of the room, the tilemap disappears again.

I've deleted everything in the room except the camera target, main character and tilemap, and it still happens.

#1
05/10/2009 (2:42 pm)
have seen similar problems with the AStar example project from TGB 1.7.4 but was not sure if it is related to the tilemap rendering (its not there on in that project) or related to the project
#2
05/10/2009 (3:35 pm)
I'm not having any problem with tilemaps or with aStar, other than the bug I posted about aStar not honoring the corner cutting value for the final position.
#3
05/10/2009 (5:07 pm)
Tested on the iphone too?

Tested it on OS 3 Beta 5, the one and only important at the time, and that was the result I got ( aside from another issue) but as mentioned, potentially a setup thing
#4
05/10/2009 (5:37 pm)
Tested on iPhone. Same thing.

I did notice too, in the editor, when I zoom in to where the edges of the tilemap are outside the display area, the tilemap disappears.

I've posted some screen grabs of the problem in the editor: www.terribleproductions.com/images/full.jpg www.terribleproductions.com/images/missing.jpg
#5
05/11/2009 (6:14 am)
yea I'm not doing any zooming but I have a 10x40 tilemap that a character walks around in with the camera attached. Everything works fine from a tile map perspective.
#6
05/11/2009 (7:43 am)
I've narrowed the problem down to that if at least one corner is within the display area, the tilemap shows up.

Edit: Also, if it makes any difference, I'm using the Mac version of iTGB.
#7
05/11/2009 (7:57 am)
I'm also on the MAC and not having that problem. You see anything odd in the console.log?
#8
05/11/2009 (8:34 am)
@Bret I didn't see anything out of the ordinary in the console.log

The problem did just get weirder, that I noticed it seems to be happening when one of the dimensions (either width or height) is exactly 512. If I change it to 513 x 513, it seems to work fine.
#9
05/31/2009 (10:02 pm)
I just had this happen also. It appears to be a detection issue. When i zoom out it reappears. Any plans for fixing this? Currently 2 of our games use tilemaps which are useless in 1.2