I am converting this monkey jump game tutorial in android. I have done til monkey sliding right to left and left to right but I am stuck in the part of monkey walking animation. I have tried but getting the "Null Pointer Exception"
This is my code
CCSpriteFrame frame = CCSpriteFrameCache.spriteFrameByName("left_1.png");
walkAnimation.addFrame(frame);
CCSpriteFrame frame2 = CCSpriteFrameCache.spriteFrameByName("left_2.png");
walkAnimation.addFrame(frame2);
monkey.addAnimation(walkAnimation);
CCAnimate wAction = CCAnimate.action(walkAnimation,true);
monkey.runAction(wAction);
walkAnimation
, check your code. – Gustavo Maciel May 7 '12 at 5:33