I am trying to create an auto tour but am running into some trouble. I currently have the following code from
<krpano version="1.0.8" onstart="action(check-auto-tour);">
<action name="check-auto-tour">
if(autotour-button.enabled == true, action(play-tour); autotour-button.enabled == false, action(dont-play-tour); );"
</action>
<action name="play-tour">
lookto(180,0,120,smooth(100,50,20));
lookto(360,0,300,smooth(100,50,20));
wait(1);
loadpano(oaktrail.xml,null,MERGE,BLEND(1));
</action>
<action name="dont-play-tour">
set(autorotate.enabled,false);
</action>
<plugin name="autotour-button" enabled="true" visible="true" handcursor="true" keep="true" url="averyisland_click.jpg" zorder="2" align="bottom" edge="center" y="309" x="240" blendmode="screen" onover="set(blendmode,add);" onout="set(blendmode,screen);" onhover="showtext(Auto tour on / off)" onclick="action(play-tour);" />
<plugin name="stop_autotour-button" enabled="true" visible="false" handcursor="true" keep="true" url="averyisland_click.jpg" zorder="2" align="bottom" edge="center" y="309" x="240" blendmode="screen" onover="set(blendmode,add);" onout="set(blendmode,screen);" onhover="showtext(Auto tour on / off)" onclick="action(dont-play-tour);" />
<action name="auto-tour_on">
set(plugin[autotour-button].enable,false);
set(plugin[autotour-button].visible,false);
set(plugin[stop_autotour-button].enable,true);
set(plugin[stop_autotour-button].visible,true);
</action>
<action name="auto-tour_off">
set(plugin[stop_autotour-buttont].enable,false);
set(plugin[stop_autotour-button].visible,false);
set(plugin[autotour-button].enable,true);
set(plugin[autotour-button].visible,true);
</action>
However when this loads the new scene it does not continue into auto tour. So what i did was create a set of xml codes for all other scenes that load the play-tour action on start when the auto tour action is enabled. If a user wants manuel tour they continue through the tour using hotspots or thumbnails depending on which one I use.
<krpano version="1.0.8" onstart="action(play-tour);">
<action name="play-tour">
lookto(180,0,120,smooth(100,50,20));
lookto(360,0,300,smooth(100,50,20));
wait(3);
loadpano(bridge.xml,null,MERGE,BLEND(1));
</action>
But in this case the auto-tour does not allow users to interrupt it. It completes the action and loads the next scene. How can I allow users to interrupt the auto tour and see what they want and then let the auto tour continue?
Thanks in advance for your help