Sprite

Sprite

Description

class Sprite

Constructor

new Sprite(name, manager)

Parameters

Name Type Description
name string
manager SpriteManager

Members

name : string

position : Vector3

color : Color4

width : number

height : number

angle : number

cellIndex : number

invertU : number

invertV : number

disposeWhenFinishedAnimating : boolean

animations : Animation[]

isPickable : boolean

actionManager : ActionManager

size : number

Methods

playAnimation(from, to, loop, delay, onAnimationEnd) void

Parameters

Name Type Description
from number
to number
loop boolean
delay number

stopAnimation() void

dispose() void