美文网首页
[每记]SK篇-node动画

[每记]SK篇-node动画

作者: 帅气的昵称啊点 | 来源:发表于2018-02-07 23:29 被阅读14次

    缩放:

    node.run(SKAction.scale(to: 缩放倍数, duration: 时间/秒),withKey:"键值")

    连续动画:

    SKAction.sequence([xxAction, xxxAction])

    第一个动画执行完再执行第二个:

    run(第一个动画) {

                    self.run(第二个动画)

                }

    node切换里面的不同texture:

    node提供接口,接口里有两个texture

    self.texture = self.Texture2

    相关文章

      网友评论

          本文标题:[每记]SK篇-node动画

          本文链接:https://www.haomeiwen.com/subject/rwqzzxtx.html