AbelCainMD Posted January 21, 2017 Share Posted January 21, 2017 I'm attempting to keep my animated tiles in phaser, but it don't seem to work by default. Does anyone know of a work around? I've included an image of the animated tile map. Link to comment Share on other sites More sharing options...
phreaknation Posted January 22, 2017 Share Posted January 22, 2017 what isnt working exactly? Your question is a bit vague. Link to comment Share on other sites More sharing options...
nkholski Posted January 22, 2017 Share Posted January 22, 2017 Animated tiles isn't supported by Tiled so you have to find a custom solution. I added support for animations about a year ago in whatever version Phaser had then. I could share the code but it probably needs to be updated to work with current versions. I made a pull request to Phaser but it became obsolete and never merged. One concern is that you need to redraw all visible tiles despite how many tiles you are changing. Animations with high framerates or multiple that aren't in sync could become a performance issue. That could be changed but not without further changes in Phaser source. Perhaps it could be worth updating the files again and make a pull request for Phaser CE. Link to comment Share on other sites More sharing options...
nkholski Posted January 22, 2017 Share Posted January 22, 2017 Found the PR. Almost 2 years ago! Time flies. It would most probably not work with current version without an update. https://github.com/photonstorm/phaser/pull/1611 Link to comment Share on other sites More sharing options...
Recommended Posts