I'm trying to make a Spritebuilder iPhone game, and my main character _player is a CCNode whose child is a CCBFile which holds the character's idle animation.
I want to change this _player's CCBFile to another CCBFile called ForwardDash.ccbi which contains the 'attack' animation when the player touches the screen.
This is what I'm trying:
//_player is a CCNode, its first child is the CCBFile with the idle animation.
//animar is a pointer to the CCBFile with the ForwardDash animation
CCSprite *wat = _player.children[0];
CCNode *animar = [CCBReader load:@"ForwardDash"];
[wat setSpriteFrame: (CCSpriteFrame*)animar];
It fails and gives me the error: 'Thread 1: signal SIGABRT'