I'm still trying to figure out where to put it. Right now I slap it into my startup but I'm going to try to put it in an action for each scene so I can customize where it looks. I'm also hoping that by putting in the oninturrupt(break) it will resume when I leave it idle...
oninterrupt(break);
lookto(150,30);
wait(1);
lookto(242,0);
lookto(280,-10);
wait(1);
Edit: Nope. I placed this code after the </image> tag and before the <hotspot> tag and I got nothing working.
<action name="BRlookto">
oninterrupt(break);
lookto(150,30);
wait(1);
lookto(242,0);
lookto(280,-10,);
wait(1);
</action>
Edit 2: I placed the action before all the scenes and then in the first scene call I put the action in the onstart:
<scene name="scene_blue_skies" title="Blue Skies Room" onstart="BRlookto();" thumburl="panos/blue_skies.tiles/thumb.jpg" lat="" lng="" heading="">
It still makes the menu stay popped up (instead of starting minimized) and I've been messing with the speed.
<action name="BRlookto">
oninterrupt(break);
lookto(150,30,smooth(100,50,20));
wait(1);
lookto(242,0);
lookto(280,-10);
wait(1);
</action>
It seems to work OK if I put in the z-axis lookto(150,30,0,smooth(100,50,20)); but I don't want it to zoom.
Edit 3: Ok, I just typed in the FOV for what the room is and it seems to work (not zooming)
<action name="BRlookto">
oninterrupt(break);
lookto(150,30,120,smooth(100,50,20));
wait(1);
lookto(242,0,120,smooth(100,50,20));
wait(1);
lookto(380,30,120,smooth());
wait(1);
</action>
My main startup seems to be where the issue of the menubar popping up and the intro image flashing when moving to the second lookat.
<action name="startup">
if(startscene === null, copy(startscene,scene[0].name));
loadscene(get(startscene), null, MERGE);
skin_hideskin(); <!-- start with control bar minimized -->
realtor_mobile();<!-- mobile realtor area minimized -->
playsound("bg", "sound.mp3|sound.wav", 0);<!-- start music loading both filetypes for browers differences -->
toggle_sound();<!-- start tour with sound off -->
</action>
If I move the skin_hideskin() function up, then it disappears when the tour starts up but when I break the lookat action or the action finishes the menubar pops back up.
So how do I make it continue after user interruption?
How can I make it stop interrupting the menubar hiding?
How can I make it stop flashing the introimage after the first wait(1)?
This post has been edited 3 times, last edit by "Tebasaki" (Nov 19th 2013, 10:55pm)