Question about rotation.

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

    Code
    <hotspot name="spot0" onover="tween(scale,1,0.5);set(autorotate.speed,0)" onout="tween(scale,0.5,0.5);set(autorotate.speed,5)".../>
    Code
    <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?

  • 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.

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

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!