cocos2d-iphone-extensions  0.2
Cocos2D Extensions API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Properties
HKTMXAnimRule Struct Reference

#import <HKTMXLayer.h>

List of all members.

Protected Attributes

double delay
double cycleTime
unsigned int next
unsigned int last

Detailed Description

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.


The documentation for this struct was generated from the following file: