The basic object that is rendered to the game screen.
The image for the sprite
use heavy renderer that will reduce border artifacts and apply advanced blendModes
The image for the sprite.
The blend mode to be applied to the sprite.
[read-only] The array of children of the sprite.
Sets the filters for the sprite.
The height of the sprite without the scale.
The opacity of the sprite (0 to 255).
[read-only] The object that contains the sprite.
The origin point of the sprite. (0,0) to (1,1).
The rotation of the sprite in radians.
The scale factor of the sprite.
The visibility of the sprite.
The width of the sprite without the scale.
The x coordinate of the sprite.
The y coordinate of the sprite.
Number of the created objects.
checks if we need to speed up custom blendmodes
Returns the absolute x position of the sprite animation.
Returns the absolute y position of the sprite aniamtion.
Adds a child to the container.
The child to add
The child that was added
Adds a child to the container at a specified index.
The child to add
The index to place the child in
The child that was added
Create the cell sprites of the sprite animation.
Create the screen flash sprite of the sprite animation.
Create the sprites of the sprite animation.
Returns the current frame index of the sprite aniamtion.
Calls each of the listeners registered for a given event.
The event name.
Arguments that are passed to registered listeners
true
if the event had listeners, else false
.
Return an array listing the events for which the emitter has registered listeners.
Gets the blend color for the sprite.
The blend color [r, g, b, a]
Gets the color tone for the sprite.
The color tone [r, g, b, gray]
Returns true if the sprite animation is playing.
Returns true if the sprite animation is ready.
Return the listeners registered for a given event.
The event name.
Check if there listeners for a given event.
If exists
argument is not true
lists listeners.
The event name.
Only check if there are listeners.
Loads the bitmaps of the sprite animation.
Sets the x and y at once.
The x coordinate of the sprite
The y coordinate of the sprite
Removes the sprite animation.
Removes a child from the container.
The child to remove
The child that was removed
Removes a child from the specified index position.
The index to get the child from
The child that was removed
Sets the blend color for the sprite.
The blend color [r, g, b, a]
Sets the color tone for the sprite.
The color tone [r, g, b, gray]
Sets the rectagle of the bitmap that the sprite displays.
The x coordinate of the frame
The y coordinate of the frame
The width of the frame
The height of the frame
This function doesn't apply anymore.
Starts hiding the sprite animation.
The duration of the hide.
Updates the sprite for each frame.
Updates the flash animation of the sprite animation.
Updates the frame of the sprite aniamtion.
Updates the hiding of the sprite animation.
Updates the main loop of the sprite animation.
Updates the position of the sprite animation.
Generated using TypeDoc
Sprite_Animation
The sprite for displaying an animation.