How would I swap/replace the texture on a physics body during runtime?
This is with cocos2d v3.
Swap texture on cocos2d v3 chipmunk physics body?
-
- Posts: 4
- Joined: Sat Mar 15, 2014 10:07 pm
- Contact:
-
- Posts: 4
- Joined: Sat Mar 15, 2014 10:07 pm
- Contact:
Re: Swap texture on cocos2d v3 chipmunk physics body?
I tried this but it's for cocos2d-X and didn't work
Code: Select all
mySprite->setTexture(CCTextureCache::sharedTextureCache()->addImage("newImage.png"));
Who is online
Users browsing this forum: No registered users and 10 guests