::

interface XSprite

Methods' Summary
startAnimation Start animation sequence of this sprite. The speed of the animation is given in frames per second.
stopAnimation Stop the animation sequence. A subsequent startAnimation will commence the sequence at the point where it was stopped with stopAnimation.
resetAnimation Reset the animation sequence to start with the first frame. If the animation is currently running, the next frame that is drawn after this method has finished, will be the first one.
setTransparency Set overall transparency of the sprite. Useful for e.g. fading in/out of animations.
Methods' Details
startAnimation
void
startAnimation(
 
[in] double
 
speed );

Description
Start animation sequence of this sprite. The speed of the animation is given in frames per second.
stopAnimation
void
stopAnimation();
 
 

Description
Stop the animation sequence. A subsequent startAnimation will commence the sequence at the point where it was stopped with stopAnimation.
resetAnimation
void
resetAnimation();
 
 

Description
Reset the animation sequence to start with the first frame. If the animation is currently running, the next frame that is drawn after this method has finished, will be the first one.
setTransparency
void
setTransparency(
 
[in] double
 
alpha );

Description
Set overall transparency of the sprite. Useful for e.g. fading in/out of animations.
Top of Page