diff --git a/cocos2d/CCAction.m b/cocos2d/CCAction.m index da30626574a..c3b7bdfd9e7 100644 --- a/cocos2d/CCAction.m +++ b/cocos2d/CCAction.m @@ -317,11 +317,11 @@ -(void) step:(CCTime) dt if(_boundaryFullyCovered) return; - CGPoint tempPos = ccpSub( _halfScreenSize, _followedNode.position); - [(CCNode *)_target setPosition:ccp(clampf(tempPos.x, _leftBoundary, _rightBoundary), clampf(tempPos.y, _bottomBoundary, _topBoundary))]; + CGPoint tempPos = ccpSub( _halfScreenSize, _followedNode.positionInPoints); + [(CCNode *)_target setPositionInPoints:ccp(clampf(tempPos.x, _leftBoundary, _rightBoundary), clampf(tempPos.y, _bottomBoundary, _topBoundary))]; } else - [(CCNode *)_target setPosition:ccpSub( _halfScreenSize, _followedNode.position )]; + [(CCNode *)_target setPositionInPoints:ccpSub( _halfScreenSize, _followedNode.positionInPoints )]; }