You are not logged in.

1

Tuesday, May 7th 2013, 5:59pm

Question about rotation.

Is there a way to lower the time in which the autorotation stops after such a code:

Source code

1
<hotspot name="spot0" onover="tween(scale,1,0.5);set(autorotate.speed,0)" onout="tween(scale,0.5,0.5);set(autorotate.speed,5)".../>


Source code

1
<autorotate horizon="37.1" tofov="90" waittime="4" speed="5"/>


The idea is to stop autorotation after people move mouse over the hotspot image. The code works but it stops moving a bit too slow :)

Is there any variable to lower that time in which autorotation's speed goes from 5 to 0?

2

Tuesday, May 7th 2013, 9:32pm

Hi,

better try using autorotate.enabled instead...

and if it should restart rotating instantly after leaving the hotspot, you could set the waittime to 0 at the beginning,
e.g.

Source code

1
2
onover="set(autorotate.enabled,false);"
onout="set(autorotate.waittime,0); set(autorotate.enabled,true); delayedcall(0.5, set(autorotate.waittime,4));"


Best regards,
Klaus