Jump to content
  • 0

Animated Sprites - New .json Config


Question

Posted

Is this how animated sprites works now? Just I cant seem to get it working, this should be right for .json?

 

  "AnimatedSprites": [
    "MOB - Bird1.png",
    "MOB - Bird2.png",
    "MOB - Bird3.png",
    "MOB - Bird4.png",
    "MOB - Bird5.png",
    "MOB - Bird6.png"
  ],

3 answers to this question

Recommended Posts

  • 1
Posted

Everything looks right... Maybe try taking out the spaces/making everything lower case in both the image files and the AnimatedSprites config.

  • 0
Posted

Do you have a space between : and [ ? You need one if you do not. Also I use underscore instead of spaces in my image file names and animated sprites work great.

  • 0
Posted
10 hours ago, Raku said:

Everything looks right... Maybe try taking out the spaces/making everything lower case in both the image files and the AnimatedSprites config.

Yeah are right mate, changed it to just "bird.png" and it worked. Dont think it likes the hyphen :P

 

Thanks

×
×
  • Create New...