缩放:
node.run(SKAction.scale(to: 缩放倍数, duration: 时间/秒),withKey:"键值")
连续动画:
SKAction.sequence([xxAction, xxxAction])
第一个动画执行完再执行第二个:
run(第一个动画) {
self.run(第二个动画)
}
node切换里面的不同texture:
node提供接口,接口里有两个texture
self.texture = self.Texture2
node.run(SKAction.scale(to: 缩放倍数, duration: 时间/秒),withKey:"键值")
SKAction.sequence([xxAction, xxxAction])
run(第一个动画) {
self.run(第二个动画)
}
node提供接口,接口里有两个texture
self.texture = self.Texture2
本文标题:[每记]SK篇-node动画
本文链接:https://www.haomeiwen.com/subject/rwqzzxtx.html
网友评论