简体   繁体   中英

Removing portion of sprite in cocos2d-x

Is it possible to remove only a portion of a CCSprite that a player comes into contact with?

If a player is running on a tmxtilemap, I'd like to be able to remove only the parts of the tile that the player runs into in an effort to make the look less "boxy".

Is this possible?

Thanks in advance!

No, technically no. But you can have it other way round. What you can do is add a particular sprite in parts (with each part as another sprite).then it is possible

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM