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.
在运行 CCScaleBy 时,如何使精灵的 CGrect 与精灵一起扩展。对我来说,CGrect 只是停留在原来的位置,而 sprite 展开。
使用boundingBox cgrect。它应该具有精灵的所有变换。CGRect r = [精灵边界框];