Tilemap versus PNG image for Layer?

Discussion and feedback on Construct 2

Post » Sun Jan 11, 2015 2:30 pm

I've spent several days testing both issues so I'm not trying to get work done for me. :)

I'm making a dungeon crawler and I've imported a Tiled (TMX file) for my Layer_0 background. I've also saved my TMX as an image file (PNG) inside of Tiled and imported that as my background into C2.

After setting up my hero to run around (which works very good), I run the debug window and the statistics are not that different between the two. However, my hero works much smoother with the PNG background.

My concern is that since I've only been using C2 for a week, there may be issues down the road that I'm not aware of now in choosing whether to use the Tilemap or the PNG option for all of my maps. Animations, enemy interactions, finding gems and items, etc.. I've already been cutting my sprites out of tilemaps inside of Photoshop to use on the PNG background, versus just using those sprites from the tile map inside of C2 with a TMX map.

I'm very much concerned about how much smoother things work on a PNG, and the collision checks are less when my hero is not running around on 24x24 tiles.

I've read the manual section on Tilemaps several times, but I had trouble understanding some of it. So I have been researching this as much as I know how.

What am I not seeing here? Which would be the better option?

Thank you in advance.
B
8
S
1
Posts: 20
Reputation: 505

Post » Sun Jan 11, 2015 3:20 pm

Tilemaps should only be used if your background is made up of reusable images, i.e. the tiles. Otherwise if it's just a single individual image then it should be a png. You should split your png into sections no bigger than 512x512 though and reassemble them in construct.
B
43
S
22
G
20
Posts: 735
Reputation: 11,977

Post » Sun Jan 11, 2015 3:57 pm

LarryP wrote:After setting up my hero to run around (which works very good)


Have you tried put just the itens you want to verify in the debug "watch" tab (clicking the eye).
For me, the main debug tab run things slowly on Mobile.
B
18
S
4
G
1
Posts: 143
Reputation: 1,868

Post » Mon Jan 12, 2015 11:35 pm

I haven't used the watch in debug yet but I'm sure I will. I used it often in Visual Studio and relied on it.
B
8
S
1
Posts: 20
Reputation: 505

Post » Mon Jan 12, 2015 11:39 pm

I will slice my images in Photoshop then and continue to use PNG files for my maps. I build them with tiles but I don't need to have them tiled in C2 that I know of. I just wondered if for reasons I'm not knowing of now I should use tile maps.

Thank you both for your replies!
B
8
S
1
Posts: 20
Reputation: 505

Post » Tue Jan 13, 2015 1:12 pm

I would strongly recommend you do not compose layouts from large images. It is extremely wasteful of memory. See remember not to waste your memory
Scirra Founder
B
387
S
229
G
87
Posts: 24,245
Reputation: 192,160


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests