Hi,
..but the last two lines, of course, are executed in serial.
The tween actions in your code will NOT be executed in serial.
The tween() call only starts the execution but then it will run parallel.
For serial sequences the 'donecall' of the tween would need to be used.
Multiple-variable tweens could be used too, but the result will be the same as the two tween calls - e.g.
|
Source code
|
1
|
tween(hotspot[h].scale|hotspot[h].alpha, 1.0|1.0, 0.5);
|
or
|
Source code
|
1
|
callwith(hotspot[h], tween(scale|alpha, 1.0|1.0, 0.5) );
|
Best regards,
Klaus