Wednesday, October 30, 2013

Cocos2D Cropping Sprites

Useful trick for features like graphical health bars etc.


theSprite->setTextureRect(CCRectMake(x,y,w,h));


Reference: http://www.cocos2d-x.org/forums/6/topics/32721

No comments:

Post a Comment