Overview
Creates an sprite animation the screen from ImageSheet object and sequence information. Initially, the animation is stopped.
The local origin is at the center of the image.
Initial anchor point is the center of the image also.
Sprite class inherits Display class, therefore all the methods defined in Display class can also be used in the Sprite object.
Syntax
• sheet (required) : returned table of getsheet() function
• sequence (required) : table containing sequence data
• time (required) : milli-seconds, time to play all the frames once
• loops : (number) repeat count whose default value is INF
• frames : (table)
(Note:) In case of multiple sequences, a number of tables containing above fields
can exist in the sequence table
Methods
Note that the constructor automatically sets the frame as displaying image.
The sequence is not played at the beginning.
Examples
single sequence :
multiple sequences with number indexes :
multiple sequences with names :
댓글 없음:
댓글 쓰기