Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图通过拖放来叠加精灵,当精灵碰撞时我想粘住它们,所以如果一个掉落,另一个精灵堆栈将掉落两个。请问有什么想法吗?
最好的祝福
为了更精确,我需要在棍子部分的帮助。谢谢
我会按照这些步骤。-
CCSprite
CCSprite *spriteToFollow
CGPoint
CustomSprite
spriteToFollow
CustomSprite init
scheduleUpdate
update
spriteToFollow.position + offset
希望能帮助到你。