Log in
Please log in or register.
Pages: [1]
  Print  
Author Topic: Tiled Tilemap  (Read 1278 times)
SwiftFalcn
Newbie
*
Posts: 17


View Profile
« on: Thu, Aug 20, 2009 »

Ok so I've written a few simple classes to handle Tiled XML files. I've uploaded an example project including it and how to use it.

Something important to note is I changed a line in FlxTilemap on line 50 instead of casting it to uint I cast it to an int.

http://www.easy-share.com/1907428643/TiledExample.zip

So yeah I think its pretty straight forward but I've been using it for a while so If you have a question throw it up and I'll help ya out. Totally free for whoever wants to use it for whatever.
Logged
Wing Eraser
Jr. Member
**
Posts: 82



View Profile
« Reply #1 on: Fri, Aug 21, 2009 »

When I save the map, it's jumps to 2KB. Mode isn't playable anymore.
1. Open the tiledLvl.tmx
2. Hit CTRL+S
3. tmx file = 2KB

What's wrong?
Logged
SwiftFalcn
Newbie
*
Posts: 17


View Profile
« Reply #2 on: Fri, Aug 21, 2009 »

You probably have GZip compression enabled inside of Tiled. Go Edit->Preferences->Saving Tab->Layer Options Group-> and uncheck Compress layer data(gzip).



Logged
Wing Eraser
Jr. Member
**
Posts: 82



View Profile
« Reply #3 on: Sat, Aug 22, 2009 »

Yeah  Cheesy, that helped. Thanks!
Logged
Wing Eraser
Jr. Member
**
Posts: 82



View Profile
« Reply #4 on: Tue, Aug 25, 2009 »

I was playing around to make a isometric map. When I load it into the game, it shows the normal map. The tile has been placed like this:


The tile size are 24px by 24px
So what's wrong? Or Flixel doesn't support isometric maps Cheesy
« Last Edit: Tue, Aug 25, 2009 by Wing Eraser » Logged
Adam Atomic
Administrator
Hero Member
*****
Posts: 724


hostest w/ the mostest


View Profile WWW
« Reply #5 on: Tue, Aug 25, 2009 »

Flixel doesn't support overlapping tiles currently, but it probably wouldn't be that hard to alter FlxTilemap to support them, as the only difference is really the X and Y offsets on the even numbered lines...though you might have to write up an angled collision function too?
Logged

Pages: [1]
  Print  
 
Jump to: