Why hello!
I was experimenting with the Advanced Tile Loader in an attempt to set some tiles up for a platformer. I'm not sure exactly what's going on, but the wrong tiles are being rendered to the screen!
I followed the tutorials.. I'm just lost at using these tools right now. I'm fairly close to attempting my own tile engine.
Attached are a screenshot of the Tiled program(how the tiles should appear), a screenshot of my game screen (how the tiles actually appear), and my .love file.
Any suggestions would be welcome!
ATL
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- 8bitDaemon
- Prole
- Posts: 5
- Joined: Sat Nov 16, 2013 3:32 am
-
- Party member
- Posts: 712
- Joined: Fri Jun 22, 2012 4:54 pm
- Contact:
Re: ATL
The tileset image is a little too large.
It's 1218*386 pixels. This doesn't fit with the 32*32 pixel width. It seems that tiled cuts of the trailing two pixels while the advanced tiled loaded treats those two pixels as an extra tile. Or vice versa. I'm confused. Anyways, that's why you have an offset of one tile each line (easy to see if you place the whole tileset into the level).
1218/32 = 38.0625 ... so you're not hitting the exact tile border with the image border.
38 tiles * 32 pixels = 1216 pixels.
Simply trim two pixels from the right side and bottom side of the image (gimp -> image -> canvas size -> change size -> save) and you're fine!
It's 1218*386 pixels. This doesn't fit with the 32*32 pixel width. It seems that tiled cuts of the trailing two pixels while the advanced tiled loaded treats those two pixels as an extra tile. Or vice versa. I'm confused. Anyways, that's why you have an offset of one tile each line (easy to see if you place the whole tileset into the level).
1218/32 = 38.0625 ... so you're not hitting the exact tile border with the image border.
38 tiles * 32 pixels = 1216 pixels.
Simply trim two pixels from the right side and bottom side of the image (gimp -> image -> canvas size -> change size -> save) and you're fine!
trAInsported - Write AI to control your trains
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
Bandana (Dev blog) - Platformer featuring an awesome little ninja by Micha and me
GridCars - Our jam entry for LD31
Germanunkol.de
- 8bitDaemon
- Prole
- Posts: 5
- Joined: Sat Nov 16, 2013 3:32 am
Re: ATL
Germanunkol wrote: It's 1218*386 pixels. This doesn't fit with the 32*32 pixel width. It seems that tiled cuts of the trailing two pixels while the advanced tiled loaded treats those two pixels as an extra tile. Or vice versa. I'm confused. Anyways, that's why you have an offset of one tile each line (easy to see if you place the whole tileset into the level).
1218/32 = 38.0625 ... so you're not hitting the exact tile border with the image border.
38 tiles * 32 pixels = 1216 pixels.
WELL....... I'll be sure to double check my tile set size from here on out.. I've seriously been banging my head into the wall on this one.
Thank you!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 3 guests