hello, I'm trying to make a layer that is located in the center, pan around 4 different and close positions, indicating how a pane moves. everything works perfectly for me, but only in the starting position.
this is the code:
<layer name = "helpa" style = "" keep = "true" url = "hotspots / helpa.png" align.
desktop = "bottomright" x.desktop = "190" y.desktop = "5" align.tablet = "topright" x.tablet = "5" y.tablet = "15" zorder = "99"
alpha = "0.8" scale = "0.8" visible = "true" enabled = "true"
onclick = "switch (autorotate.enabled); action (skin_hideskin); set (layer [tg] .visible, true); action (skin_hideskin); set (layer [tg] .visible, true);
delayedcall (1, lookto (187,0.0,120,
smooth (6,25,12)));
delayedcall (3, lookto (173,0.0,120, smooth (6,25,12)));
delayedcall (6, lookto (180,7.0,120, smooth (6,25,12)));
delayedcall (9, lookto (180, -7.0,120, smooth (6,25,12)));
delayedcall (12, lookto (180,0.0,120, smooth (6,25,12)));
delayedcall (13, set (layer [tg] .visible, false)); action (skin_showskin); switch (autorotate.enabled); "
/>
Being in a different position than the initial one, everything gets complicated, I have tried many variables but I can't get it.
How do I make the onclick order take the current position and simply increment or decrement the amount needed in Hlookat and vlookat.
I appreciate any hint
Ramiro