Skip to content
Miloš Manojlović edited this page Feb 10, 2019 · 2 revisions

Check out SceneObjectUtil

Extended from ImageObject

CurrentIndex : number

Legacy Currently used image from SpriteSet.

CurrentSpriteSet : SpriteSet

Currently used SpriteSet.

BackUpSpriteSet : SpriteSet

This SpriteSet will be set next once current one finishes.

SpriteSets : SpriteSet

SpriteSets used by this Sprite.

NormalSets : SpriteSet

SpriteSets used for Normal mapping by this Sprite. For more info check Normal Mapping. Constructor ( Old [Optional] : Sprite )

Copy : Function ( )

Creates new instance that is exact copy. Returns Sprite.

SetSpriteSet : Function ( Index : number )

Set SpriteSet as current by index in SpriteSets array. Animation will start from begining, even if it's same SpriteSet.

UpdateSpriteSet : Function ( Index : number )

Set SpriteSet as current by index in SpriteSets array. Animation will start from begining only if it's different SpriteSet.

SetSpriteSetByName : Function ( Name : string )

Set SpriteSet as current by name in SpriteSets array. Animation will start from begining, even if it's same SpriteSet.

UpdateSpriteSetByName : Function ( Name : string )

Set SpriteSet as current by name in SpriteSets array. Animation will start from begining only if it's different SpriteSet.