The TilemapKit Roadmap is yours! All the ideas and discussions
10 votes Vote

TK: support for tile animations

Support tile animations. The data is already loaded, it's mainly an issue of running the animations at runtime.

The animation probably runs on the tileset level. Meaning if a tile texture for GID 123 is requested, it is first checked whether that tile GID is recorded as having a tile animation.

If so, the tileset is not asked for the tile GID's texture but for its current animation tile GID texture by providing a timestamp along with the GID. That way no timers need to run to update the animations. This would also allow off-screen tiles to continue their animation, sort of.

This would have all tiles with the same animation run synchronously.

Estimation: 4 days

sitterheim, 25.06.2015, 18:08
Response from the site administrator
sitterheim, 24.08.2015
It's done. Global and coord-specific (asynchronous) tile animations. Most of the API is in TKTileAnimation class:

http://tilemapkit.com/class-reference/html/Classes/TKTileAnimation.html

Coord-specific animations can be played, accessed or removed via TKTileLayer:
http://tilemapkit.com/class-reference/html/Classes/TKTileLayer.html#//api/name/playTileAnimation:atCoord:
Idea status: completed

Comments

Jegge, 01.08.2015, 23:51
The repeat mode should also be configurable; e.g. one shot with a block getting called afterwards, or repeating n time, or repeating forever. This would make opening doors kind of animations a breeze.
sitterheim, 04.08.2015, 13:27
Good point!

Could also use a backwards option (ie door open, door close).

Leave a comment