SKShapeNode动画线宽

时间:2018-09-12 22:03:44

标签: swift xcode swift4 skshapenode

因此,我正在创建一个小型游戏,并决定尝试创建一个区域,例如pubg。我的方法是使用SKShapeNode,然后更改lineWidth以使其看起来像在缩小。使fillColor清晰。但是,这导致了延迟。在这里我要如何处理它。它很大,覆盖了21,000 x 21,000的tileMap。

 @objc func decreaseZone(){
    if redZone.lineWidth < 200000.00 {
    redZone.lineWidth = redZone.lineWidth + CGFloat(self.speedZone)
    print("zone width \(redZone.lineWidth)")
    }
}

此功能每0.05秒运行一次。

0 个答案:

没有答案
相关问题