Alexyuiop
Alexyuiop

Reputation: 823

Cocos2d : CGRect Expands with Sprite when running CCScaleBy

How do you make the CGrect for a sprite expand with a sprite as it is running CCScaleBy. For me, the CGrect just stays in it's original position while the sprite expands.

Upvotes: 1

Views: 241

Answers (1)

Andres C
Andres C

Reputation: 929

Use the boundingBox cgrect. It should have all transformations of the sprite. CGRect r = [sprite boundingBox];

Upvotes: 2

Related Questions