How to skip the intro movement of the scene, when coming back from an other one ?

  • Hi,

    When i write a "moveto" code in the <krpano onstart=""> tag, i can set the fov, min, max when coming back in this scene from a hotspot in the other scene. That enables to open the first pano on the right fov (end of the introduce movement).

    Code
    <krpano version="1.0.8.14" onstart="startup(); wait(LOAD); 
                                zoomto(95, linear(15)); 
                               moveto(-46, -9.5, linear(10)); 
                               tween(plugin[infos].alpha, 1.0, 1);">


    When i write the "moveto" in the <scene onstart=""> tag, i can't skip the movement when coming back in this scene. The settings wrote in the <hotspot onclick=""/> tag don't work! No way to set the loaded scene at the right fov ?


    With variable "if" ? A "visited" tag ? Thing i must write the movement in the <scene> tag because i use swf address plugin in this big tour.
    Any help would be pleased. *smile*
    Thanks.
    Steph

  • Hi,

    you can try to add a variable where you save if the intro has already planed,

    e.g.

    Code
    <!-- create the "intro_done" variable and set it to false for the beginning -->
    if(intro_done === null, set(intro_done,false));
    
    
    <!-- check if it is false -->
    if (intro_done == false,  
     	...do the intro action...; 
    	set(intro_done,true);
    );

    best regards,
    Klaus

Jetzt mitmachen!

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