Please add additional TileMap feature/support

18 views
Skip to first unread message

Douglas Williams (ordigdug)

unread,
Jun 13, 2013, 12:40:33 PM6/13/13
to fantom...@googlegroups.com
Mike,
 
Can you please add Tile Map support for the following:
 
1.Tile sets "spacing"? 
       I am using the "desert.tmx" example that comes with Tiled and the tileset "tmw_desert_spacing.png" has a 1 pixel black space between tiles. 
       When using fE CreateTileMap the result is not as expected because of the spacing.
 
2. Collisions?
      Walls, rocks, trees, etc. your character does not run into them. 
 
Thanks,
Doug

Michael Hartlef

unread,
Jun 13, 2013, 2:34:17 PM6/13/13
to
Did you have a look at

ftObject.GetTileAt for collision detection and ftObject.SetTileSModXY for scaling the tiles a little bit up? Depending on the scaling, a value like 1.05 for each direction might help greatly.

Michael Hartlef

unread,
Jun 13, 2013, 2:54:29 PM6/13/13
to fantom...@googlegroups.com
Ok, I will look into spacing. I guess that will throw some code around. :-/

Douglas Williams (ordigdug)

unread,
Jun 13, 2013, 4:12:53 PM6/13/13
to fantom...@googlegroups.com
Thank you :)

Douglas Williams (ordigdug)

unread,
Jun 13, 2013, 4:15:27 PM6/13/13
to fantom...@googlegroups.com
I will look at those and see what I can come up with.  Thanks.

Michael Hartlef

unread,
Jun 14, 2013, 2:24:49 AM6/14/13
to fantom...@googlegroups.com
The desert tilemap is basically incompatible with fE. I load it in like an animated set of frames. It brings the fastest way in drawing a map i think. With supporting margin and spacing, i need to grab each tile separately. And i have a feeling that it could slow the drawing down. Need to experiment with that.
Reply all
Reply to author
Forward
0 new messages