274275276277278279280
x += width; frames[2] = store.getTile(tiles, x, y, width, height); frames[3] = frames[1]; return new AnimatedSprite(frames, 100, false); }
543544545546547548549550551552553554555556557
* @param sprite * The sprite. */ protected void setAnimation(final Sprite sprite) { if (sprite instanceof AnimatedSprite) { final AnimatedSprite asprite = (AnimatedSprite) sprite; if (isAnimating()) { asprite.start(); } else { asprite.stop(); asprite.reset(); } } }