|
cocos2d-iphone-extensions
0.2
Cocos2D Extensions API Reference (iOS version) for www.kobold2d.com developers
|
#import <HKTMXLayer.h>
Protected Attributes | |
| double | delay |
| double | cycleTime |
| unsigned int | next |
| unsigned int | last |
Represents a tile animation state. When animClock == 0.0, each tile is in a state equal to its GID. After entering a state, a tile will look up the AnimRule for that state, wait delay seconds, and then switch to state next. If next is zero, it will stay in the state forever.
As an optimization, cycleTime and last provide information about the complete animation starting at this state. If last is zero, it is an endless loop with a period of cycleTime seconds. If last is nonzero, it will reach state last and terminate in a total of cycleTime seconds.