Hi I'm having problem in calling seperate actions on single sprite.
In my game, in beginning person is walking then after some time he is falling down.
So i have made two seperate actions walkAction and fallAction. but when i call walkperson or fallperson seperately,it's working fine..but when i call walkperson then after sometime if i call fallperson then it won't run and application crashes without error log..and yeah if i stop action then it also gives me error..
Below is code :
CCSprite *boy = [CCSprite spriteWithFile:@"wineBoyBody.png"];
boy.position = ccp(250,170);
id walkAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:walkAnim restoreOriginalFrame:NO]];
id fallAction = [CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:fallAnim restoreOriginalFrame:NO]];
[boy runAction:walkAction];
Then using scheduler , I call
[boy runAction:fallAction];
Now , wht i have to do ?
Thanks !