2D Toolkit Forum

2D Toolkit => Support => Topic started by: Sam K on August 27, 2014, 06:48:03 am

Title: tk2d tilemap Generation.
Post by: Sam K on August 27, 2014, 06:48:03 am
Hi,
I have a few questions. Some of these may be beginner questions but it would be a lot of help if you answer.
Im going to make a card game for mobile. The view will be like clash of clans.

I loved the tilemaps i think it can be used in my situation. Kindly reply to these questions.
Sam
Title: Re: tk2d tilemap Generation.
Post by: unikronsoftware on August 27, 2014, 09:56:54 am
1. tk2d doesn't allow you to resize the tilemap once created, but you can create a max size map (1024x1024) and leave it like that, you only pay the price for the tiles you use.
2. You can make it isometric, but the buildings etc should be sprites on top of it for sorting reasons.
3. You have to handle the replication yourself.
4. Docs here - http://2dtoolkit.com/docs/latest/html/classtk2d_tile_map.html you can create / modify the tilemap in code.
5. You can have isometric tiles in tk2d, but sorting will likely be an issue if you have overlapping tiles.
6. tk2d tilemap layers al sort together - they are optimized to one object. Performance is optimal, but if you need complicated sorting this might not be the best option.
7. Nope, the tilemap has a sprite collection assigned to it, you can either change that, or the associated material and/or texture directly.