You are not logged in.

1

Monday, April 18th 2011, 11:10am

tween duringcall attribute

It would be cool to have a way to respond to a tween while it is changing.

Source code

1
tween(variable,destinationvalue,time*,tweentype*,donecall*, duringcall*)

The function/actions specified in duringcall would be executed while the tween is executing. This way you could - for example - affect both the position and the alpha with a single tween.

mindlessboss

Professional

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

2

Monday, April 18th 2011, 12:18pm

it can be done
for example:

set(doduringcall,true);

duringcall();
tween(variable,destinationvalue,2,tweentype*,set(doduringcall,false));

<action name="duringcall">
if(doduringcall,
trace('Continuously doing something until tweening');
delayedcall(0.05, duringcall(); );
);
</action>



*love* Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Monday, April 18th 2011, 1:19pm

Nice one, though a bit hackish. Thanks.

4

Wednesday, April 20th 2011, 12:23pm

Hi,

okay, I have added that for the next version (the final 1.0.8.14),

best regards,
Klaus