I've created SKCropNode and tried to start action in child node. But action is not started. Below is peace of code:
override func didMove(to view: SKView) {
let refGround = SKReferenceNode(fileNamed: "fieldGround")!
let fieldGround = refGround.childNode(withName: "//fieldGround")!
fieldGround.removeFromParent()
let mask = childNode(withName: "//mask")!
mask.removeFromParent()
let crop = SKCropNode()
crop.name = "crop"
crop.maskNode = mask
crop.addChild(fieldGround)
crop.position = CGPoint.zero
crop.zPosition = 20
gameWorldNode.addChild(crop)
let actions = SKAction.sequence([SKAction.wait(forDuration: 2),SKAction.rotate(byAngle: CGFloat(90).degreesToRadians(), duration: 5)])
crop.children[0].run(actions, completion: {
print("Complete")
})
}
p.s.: iOS 12.2.6, iPhone 6