Tilemap vs Sprite...

Get help using Construct 2

Post » Fri Nov 06, 2015 8:01 am

Hi

Can someone explain me the difference between using a tilemap vs using a sprite with different frames.
What is the better way (ie. for a platform game)?

Thx
B
19
S
6
Posts: 23
Reputation: 1,341

Post » Fri Nov 06, 2015 1:57 pm

Tilemaps are a lot faster, because they are specifically optimised for tiled rendering. Using lots of sprites will be slower. You also have better editing tools for tilemaps in the editor.
Scirra Founder
B
402
S
238
G
89
Posts: 24,613
Reputation: 195,993

Post » Fri Nov 06, 2015 2:05 pm

Tiles, and tiled bg for the bulk of it, backgrounds, large inanimate things like walls, etc.
Sprites for moving, and or animated objects.
Image ImageImage
B
172
S
50
G
182
Posts: 8,432
Reputation: 115,083

Post » Fri Nov 06, 2015 2:37 pm

Thank you very much.
B
19
S
6
Posts: 23
Reputation: 1,341

Post » Fri Nov 06, 2015 5:40 pm

Ok, nice post well splained
B
32
S
9
G
3
Posts: 280
Reputation: 4,262

Post » Fri Apr 01, 2016 4:13 am

I replaced 2 big sprites ( 512x128 ) by 1 tile_map 128x128 and 1 tile_map 256x256 . After build with Cocoon. My fps build using Tile_map is about 30-43 fps , slower than using 2 big sprites about 50-60 fps ...
Do I need some tricks to use Tilemap ? Tilemap build should faster than using bigger sprites ...
B
13
S
1
Posts: 98
Reputation: 885

Post » Sat May 07, 2016 9:28 pm

Yup, same problem here... everyone saying, tile map is the best, tile map is optimized... stuff n stuff. Ram, cpu, imagememoryusage, collision check, and collision per tick are yelling otherwise. Every time I test, one layout static sprites and tiled background VS tiled map... tiled map never win.... dont understand :(
B
6
S
3
Posts: 16
Reputation: 632

Post » Sun May 08, 2016 12:56 pm

I found the problems.It is indicated in somewhere in Forum. Tilemaps read the repeatedly tiles, and counted those as one sprite. If tiles are different, they counted as diffirrent sprites. That's why it's not flexible, more works than tile-background+sprites, and sometimes really heavy because of mistake of placing tiles (make it counted as hundreds of sprites ).
Could someone give an example to make it easier please ?
B
13
S
1
Posts: 98
Reputation: 885


Return to How do I....?

Who is online

Users browsing this forum: dop2000, max2612 and 6 guests