Block-based animation helpers for Cocos2d