gpt4 book ai didi

swift - 在 Swift 中转换 followPath(_ :asOffset:orientToPath:speed:) to iOS 7. 1 兼容版本

转载 作者:搜寻专家 更新时间:2023-11-01 05:41:38 24 4
gpt4 key购买 nike

在 SpriteKit 中是否有一个等同于 followPath(:asOffset:orientToPath:speed:) 的 SpriteKit SKAction?如果没有,我可以使用 followPath(:asOffset:orientToPath:duration:) 方法来计算速度的持续时间吗?我想让 SKSpriteNode 跟随 CGPath。谢谢!

最佳答案

followPath(:asOffset:orientToPath:duration:) 从iOS7.0开始可用,所以你肯定可以使用该方法

关于swift - 在 Swift 中转换 followPath(_ :asOffset:orientToPath:speed:) to iOS 7. 1 兼容版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29159528/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com