Open GrimLothar opened 1 year ago
I didn't know Titled had an option for animated tiles. That's pretty cool. Currently Kontra does not support that, but I can look into it.
That would be awesome!! Looks like when you create an animated tile, it exports it in the json like this (inside the tilesets
object):
"tilesets":[
{
"columns":8,
"firstgid":1,
"image":"tilesheet.png",
"imageheight":256,
"imagewidth":256,
"margin":0,
"name":"tilesheet",
"spacing":0,
"tilecount":64,
"tileheight":32,
"tiles":[
{
"animation":[
{
"duration":300,
"tileid":9
},
{
"duration":300,
"tileid":17
}],
"id":33
}],
"tilewidth":32
}],
I noticed that Tiled editor does have the option to create animated tiles, but when I create one and use it within the tileengine, it is not animating it