chickadee » hypergiant » make-animated-sprite

make-animated-sprite NODE BASE-ANIMATIONprocedure

Create a new animated sprite, using the previously created NODE. BASE-ANIMATION is a (looping) animation that the sprite should use upon initialization. NODE should have been created with a sprite-sheet mesh, and with a corresponding texture. If the pipeline sprite-pipeline will be used for the animated sprite, consider using add-new-animated-sprite, which performs the node creation as well.