Hi all,
in a tour of say three rooms with three panos each I would like to create a button to jump from one room to the next room (sometimes skipping a pano in the current room).
My loop below is working but it doesn't stop when the condition was met and my simple approaches trying with wait(0);/break();/exitcall();/callwhen();/stopcallwhen(); didn't lead to success.
Maybe there is a "on-meeting-condition stop & restart the action" solution as a workaround?
I see the indexing examples but I feel it is way out of my league.
Code
<layer
name="button-jump-to-next-room"
..
onclick="jump-to-next-room();"
/>
<action name="jump-to-next-room">
if (
scene[get(xml.scene)].title == 'room1scene1-title'
OR
scene[get(xml.scene)].title == 'r1scene2-title'
OR
scene[get(xml.scene)].title == 'r1scene3-title'
,
jump-to-room2scene4();
);
if (
scene[get(xml.scene)].title == 'room2scene4-title'
OR
scene[get(xml.scene)].title == r2scene5-title'
OR
scene[get(xml.scene)].title == r2scene6-title'
,
jump-to-room3scene7();
);
etc.
</action>
Display More
Could someone lead me to the right direction please?
Thanks and happy Easter!
loki