Is there a way to run a group of SKActions followed by a sequence?

If I have the following SKActions I want done:

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?
Answered by OOPer in 649027022

Do they have some sort of notifiers after completion?

You can use run(_:completion:) instead of run(_:) and write something you want to do after the action (including sequence) is done.
Accepted Answer

Do they have some sort of notifiers after completion?

You can use run(_:completion:) instead of run(_:) and write something you want to do after the action (including sequence) is done.
Is there a way to run a group of SKActions followed by a sequence?
 
 
Q