If I have the following SKActions I want done:
I know I can either run them in sequence:
or all at once as a group
But what if I need to call other sequences, or just reset flags after the sequence or group method is done?
Do they have some sort of notifiers after completion?
Code Block let spinAction = SKAction.rotate(byAngle: 360, duration: 003) let moveAction = SKAction.move(to: CGPoint(x: origNP.x, y: origNP.y), duration: 0.3) let setFlags = SKAction.run { moveThis.inSlot = true; moveThis.isMoving = false; moveThis.inSlot = true}
I know I can either run them in sequence:
Code Block let sequence = SKAction.sequence([spinAction, moveAction, setFlags])
or all at once as a group
Code Block let group = SKAction.group([spinAction, moveAction, setFlags])
But what if I need to call other sequences, or just reset flags after the sequence or group method is done?
Do they have some sort of notifiers after completion?