Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - iopixel

Pages: [1]
1
Support / Re: [TileMap] Edit tilemaps during gameplay
« on: December 27, 2012, 04:24:26 pm »
Sure, Can I send you a sample project ?

2
Support / Re: [TileMap] Edit tilemaps during gameplay
« on: December 27, 2012, 03:26:24 pm »
The strange thing is: it only takes 5ms on a 32x32 tilemap, why does it take so much time on a 512x512 tilemap with 32x32 chunks if only modified chunks are rebuilt ?

3
Support / Re: [TileMap] Edit tilemaps during gameplay
« on: December 27, 2012, 01:27:36 pm »
I made a simple test.

One tilemap of 512x512 tiles, chunks 32x32, when I remove one block (tileMap.Layers[0].SetTile(x, y, -1) and then tileMap.Build()), it takes 2000ms.

When I try this on a 32x32 tilemap, it takes less than 5ms to remove one block. Should I make my own "chunks" with multiple 32x32 tilemaps or did I forget something ?

Note: when profiling I see TileMapCollision.Update() takes 1950ms.

4
Support / [TileMap] Edit tilemaps during gameplay
« on: December 26, 2012, 10:18:29 pm »
Hi,

I would like to edit my tilemap during the game (add and remove one or multiple tiles). I understand it can take some time (for collider and mesh creation). What is the best way to do that ?

5
Great, thanks !

6
Hi,

I can do this myself using the camera / tilemap parameters but before doing it, can you tell me there is a method to convert a world coordinate to a tile coordinate ?

Thanks !

Pages: [1]