DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

CCTargetedAction does not set _target correctly #1488

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

CCNode *aNode = [CCNode node];
CCNode *bNode = [CCNode node];
CCMoveBy *moveAction = [CCMoveBy actionWithDuration:1.0f position:ccp(0, 0)];
CCTargetedAction *tAction = [CCTargetedAction actionWithTarget:aNode 
action:moveAction];
[bNode runAction:tAction];

What is the expected output? What do you see instead?

Expected:
_target of tAction is bNode.

Actual:
_target of tAction is nil.

What cocos2d version are you using ?
2.1-rc2

What iOS / Mac SDK are you using ?
6.1.3

Debug or Release ?
Both

Which target device / target OS are you using ?
iPhone & iPad

iOS only: Does this happens on device ? or on the simulator ? or on both ?
Both

Original issue reported on code.google.com by ejmarch...@gmail.com on 8 May 2013 at 2:39

GoogleCodeExporter commented 8 years ago
Pull request:
https://github.com/cocos2d/cocos2d-iphone/pull/309

Original comment by ejmarch...@gmail.com on 8 May 2013 at 2:45

GoogleCodeExporter commented 8 years ago
thanks. fixed.

Original comment by ricardoq...@gmail.com on 9 May 2013 at 12:52