Hello,
I am trying to customize flyout hotspots code - I need flyout to execute, when clicking on another hotspot. I found post of a person who was trying to achieve exactly same thing: Help!!! How to activate one hotspot when clicking on another?
It seems to be simple, but I m still new in coding and syntax, so probably making some silly mistake. Here is what I have, and well.. it doesn't work:
<hotspot
name="soldat_img"
url="skin/soldat.jpg"
distorted="true"
ath="5"
atv="-45"
scale="0.1"
alpha="0"
autoalpha="true"
rx="0" ry="0" rz="0"
backup_rx="0"
backup_ry="0"
backup_rz="0"
backup_scale="0"
backup_alpha="0"
flying="0.0"
/>
<hotspot
name="soldat_hot"
url="skin/camera.png"
ath="15"
atv="-45"
distorted="true"
rx="-20" ry="0" rz="0"
onclick="if(soldat_img.flying == 0.0, flyout(soldat_img) ); if(soldat_img.flying == 1.0, flyback(soldat_img));"/>
<action name="flyout">
copy(hotspot[%1].backup_rx,hotspot[%1].rx);
copy(hotspot[%1].backup_ry,hotspot[%1].ry);
copy(hotspot[%1].backup_rz,hotspot[%1].rz);
copy(hotspot[%1].backup_scale,hotspot[%1].scale);
copy(hotspot[%1].backup_alpha,hotspot[%1].alpha);
tween(hotspot[%1].rx, 0);
tween(hotspot[%1].ry, 0);
tween(hotspot[%1].rz, 0);
tween(hotspot[%1].scale, 1);
tween(hotspot[%1].alpha,1,0.4);
tween(hotspot[%1].flying, 1.0);
</action>