JavaNerd Posted July 3, 2018 Share Posted July 3, 2018 Is it possible to animate tilemap tiles in Phaser 3, and if so how? For example, I have a water tile, which is a 4 frame animation. Link to comment Share on other sites More sharing options...
B3L7 Posted July 3, 2018 Share Posted July 3, 2018 Phaser 3 Animated Tiles Plugin Link to comment Share on other sites More sharing options...
JavaNerd Posted July 4, 2018 Author Share Posted July 4, 2018 I accomplished it by making it so when the player clicks on the game with an animated tile, it spawns the animated tile sprite over the tile map, where it would of went. When a user changes it back to a static tile, it deletes the sprite over the tile map. For example, if a player chooses water it spawns the static water tile in the tile map, but also spawns the animated water sprite on top of it. The player will never notice the static water image under the animated one. When a player changes it back to dirt, it will delete the water sprite and change the water tilemap to dirt. Hope this helps someone! Link to comment Share on other sites More sharing options...
Recommended Posts