while working with textures animations many time you need to store multiple animation with a single sprite for eg hero is a sprite now hero contain different animation such as walk left , walk right ,walk up, walk down so here i come with a solution in .m file copy this code =================================== #import <SpriteKit/SpriteKit.h> //spriteSequence @interface spriteSheet : SKSpriteNode { //private variable no one } @property SKTexture *startingFrame; @property SKSpriteNode *animatedsprite; @property SKAction *Animation; @property SKAction *currentAction; @property NSMutableArray *spritesArray; @property NSMutableArray *frameRateArray; @property NSMutableArray *actionKeys; //public mehods -( id ) initSpritesheet:( NSString *)firstFrame; -( void )addAnimation:( NSMutableArray *)frames frameRate:( float )time withKey:( NS...
all about coding especially in javascript, daily used algorithms, react, angular and other gaming stuffs like webgl, pixijs, three.js and cocos2dx running code sample especially in javascript and c++.