I have a function in which I need to run 2 actions one after another. e.g.
func foo()
{
..........
if someConditions
{
node1.runAction1
node2.runAction2
}
}
It seems that swift is running those actions simultaneously.
And that's exactly what I do not want to happen in my game.
I want action2 to start after action1 is finished.
What should I have to do?
Many thanks.