I'm using cocos2d and I create a CCDrawNode
.
The moment I call addChild:
to add the CCDrawNode
I call the following method to make the node scale forever:
CCActionScaleBy *scaleAction = [CCActionScaleBy actionWithDuration:0.3f scale:1.1f];
CCActionRepeatForever *repeatForever = [CCActionRepeatForever actionWithAction:scaleAction];
[self runAction:repeatForever];
Unfortunately when trying to access the CCDrawNode
boundingBox
it's width and height don't change with scale action.
What causes that and how can I get it's real width and height?
Thanks!