Hi,
I downloaded your png file and saved it as '1to15.png' (see code below)
This code works, I tested it on firefox and chrome the numbers count through from1-14 and loop.
The numbers are displayed correctly from the image file as
'1-2-3-4-5-6-7-8-9- 10 - 10 -11-12-13-14'
So, you have 15 numbers, but 10 is duplicated.
/****************************************************// Ashatej Software// February 2015// All Rights Reserved//*****************************************************///----------------------------------------------------------------// Wade global functions//----------------------------------------------------------------App = function() { var self = this; // to shorten wade.app // simply load the one image used this.load = function() { console.log('wade global load'); wade.loadImage('./1to15.png'); }; // end load // set the screen min and max size, and go this.init = function() { console.log('wade global init'); wade.setMinScreenSize(800,600); wade.setMaxScreenSize(800,600); wade.setWindowMode('full'); self.startDemo(); }; // end init // setup the animation this.startDemo = function() { console.log('start demo'); var fx = new Sprite(0,2); var ani = new Animation('./1to15.png',5,3,2,true); fx.addAnimation('count',ani); var numbers = new SceneObject(fx,0,0,0); wade.addSceneObject(numbers); fx.playAnimation('count'); }; // end startDemo }; // end App// For Chrome Debugging//@ sourceURL=game.js
cheers,
Shri