It is a trouble to make actions run in turn as you want.Now ,I make a class named ActionManager to solve the problem:
how to use it:
first regist the object and its action to the ActionManager you’ve just created,give the order as the third parameter.
second: call the function runManager(), and all the register action will run in turn.
An example in short:
the effect is s2 will run first ,then s1,s3 run at the same time ;after they finish,s4 will run at last
any questions or bugs ,you can e-mail me ; my e-mail address is :firstname.lastname@example.org
actionmanager.cpp.zip (1.5 KB)