Exactly !oninterrupt is what you are looking for. (I believe)
The following link should take you to the documentation.
http://www.krpano.com/docu/actions/#oninterrupt
Quoted
<action name="tweenintro">
oninterrupt( lookinterrupt() );
tween(view.hlookat, 180, 10.0, easeInOutQuint);
tween(view.vlookat, 5, 10.0, easeInOutQuint);
tween(view.fov, 60, 10.0, easeOutQuad);
</action>
<action name="lookinterrupt">
stoptween(view.hlookat);
stoptween(view.vlookat);
stoptween(view.fov);
</action>
Quoted
<action name="tweenintro">
oninterrupt(break);
lookto(70,5,100,tween(easeInOutCubic,10),true,true) ;
</action>
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<action name="tweenintro"> oninterrupt( lookinterrupt() ); tween(view.hlookat, 180, 10.0, easeInOutQuint); tween(view.vlookat, 5, 10.0, easeInOutQuint); tween(view.fov, 60, 10.0, easeOutQuad); wait(10.0); </action> <action name="lookinterrupt"> stoptween(view.hlookat); stoptween(view.vlookat); stoptween(view.fov); </action> |
|
|
Source code |
1 2 3 4 |
<action name="tweenintro"> oninterrupt(break); lookto(70,5,100,tween(easeInOutCubic,10),true,false) ; </action> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<action name="playintrodis"> set(introdis,true);set(videostate,bienvenu); chargerbienvenu();action(playbienvenuifready); set(plugin[bienvenu].onclick,set(videostate,bienvenu);loadscene(scene_ericchauvin1,view.hlookat=70&view.vlookat=5&view.fov=100,MERGE,BLEND(2));chargerbienvenu();action(playbienvenu)); tweenintro(); set(plugin[skipintro].enabled,false);tween(plugin[skipintro].alpha,0,2,); tween(plugin[intro].alpha,0,7); delayedcall(3,tween(plugin[intro].volume,0.09,5,easeInOutCubic)); set(skipintrogoodby,true); </action> <action name="tweenintro"> oninterrupt(lookinterrupt()); tween(view.hlookat, 20, 10.0, easeInOutQuint); tween(view.vlookat, 5, 10.0, easeInOutQuint); tween(view.fov, 100, 10.0, easeOutQuad); wait(10); </action> <action name="lookinterrupt"> stoptween(view.hlookat); stoptween(view.vlookat); stoptween(view.fov); </action> |