Awesome-Game-Team / Awesome-Game

An Awesome Game
GNU General Public License v3.0
8 stars 9 forks source link

Animated Objects from Tiled #20

Open jimfrize opened 8 years ago

jimfrize commented 8 years ago

I want to be able to use animated objects created in the Tiled map editor program

metalx1000 commented 8 years ago

So, I've worked on putting sprites in to tiled. They are created as pngs under "projectFiles/map_sprites/" and compiled into a tile set as "projectFiles/allobjs.png"

are you looking to have them actually animated in the editor?

jimfrize commented 8 years ago

@metalx1000 You can animate tilesets in Tiled, it's really easy to do: View->Tile Animation Editor I had a look around to see if there was some documentation or tutorial on how to use the animated objects in Phaser, but I did not find anything. When I next get some time, I will look at what data is available in the animated objects. It must store the info in the JSON file, it's probably just a case of extrapolating it.