I played a little bit with the xml-code, especially with the order in the autotour-action and now the user can interrupt on every way to the next point. The new example. But I dont understand why my first code not correct worked....
Regards Karl
My changes:
Code
<action name="setuptour">
set(step,1);
set(idletime,4);
set(events.onidle, autotour() );
showlog();
trace('Inside Setuptour: ',step);
</action>
<action name="autotour">
trace('Start in Autotour...',step);
oninterrupt(break);
if(step == 4, trace('set step to 1'); set(step,1); );
if(step == 3, point3(); );
if(step == 2, point2(); );
if(step == 1, point1(); );
</action>
<action name="point1">
oninterrupt(break);
trace('in Point1....');
lookto(-2,-14, 32, smooth(1,5,50));
action(showimage,img1);
playsound(auto,sounds/music1.mp3);
wait(10);
action(hideimage,img1);
inc(step);
trace('End Point 1: following...',step);
</action>
.....point2
.....point3
.....etc
Display More