chickadee » hypergiant » add-new-animated-sprite

add-new-animated-sprite PARENT SPRITE-SHEET TEXTURE BASE-ANIMATIONprocedure

Returns a new animated sprite object that has been added to the Hyperscene node PARENT. The node for this sprite is created with sprite-pipeline. SPRITE-SHEET is a sprite sheet mesh that has been created with make-sprite-sheet. TEXTURE is the GL texture ID associated with the sprite sheet. BASE-ANIMATION is a (looping) animation that the sprite should use upon initialization.