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.
我在我的图层上使用了 CCFollow 来跟随玩家精灵。反正有没有抵消所以玩家不直接在中心?我想将精灵偏移中心的+100 Y。
[self runAction: [CCFollow actionWithTarget:Player]];
您可以使用您想要的任何偏移量将空节点添加到您的英雄精灵并跟随该节点,而不是英雄。