Jump to content

Animated tiles with Tiled


sebab97
 Share

Recommended Posts

Hi guys, im working on an MMORPG (Argentum Online web/mobile version) 

hqdefault.jpg

(Search more pics in google)

 

Im currently creating the map with Tiled, but i have a problem: the water is an animated tile (8 frames) and cannot render the animation with Phaser, just a static image. With Tiled i can see the animation perfectly.

 

Thanks for read.

Link to comment
Share on other sites

Cool! I've played some of the early versions of AO.

 

Unfortunately I think Phaser doesn't support animated tiles. You can probably use an instance of Phaser.BitmapData as a tileset image and then use BitmapData.copyRect() to paste the required frames at regular intervals. I don't know how fast it'd be but it'd probably be faster than using Phaser.Tilemap.replace(). 

 

Since this might be useful for my game too, I'll try to make it work and post the code as soon as possible. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...