In the first scene of https://ijlab.es/respuestas/ you can see 2 buttons (stars) that activate plugins in the upper left, each one showing a letter.
In the second scene there is a star that makes a number appear.
I want the activated numbers and letters to be seen when moving from one scene to another. That is, if the goal is to find all 3 stars, the three gaps above should be completed.
Now what is done when changing pano is canceled.
I have tried to put the plugins out of the scene, but it doesn't work for me.
Any idea?
Thank you
This is the code:
<scene name="cubo_01" title="cubo_01" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" />
<image><cube type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" /></image>
<hotspot name="boton1" url="imag/estrellita_roja.png" enabled="true" zorder="1" distorted="true" handcursor="false" ath="0" atv="-20" width="20" height="20" edge="center" ox="0" oy="0" alpha="1" onclick="tween(plugin[boton1b].rotate,0);tween(plugin[boton1b].alpha,1);tween(hotspot[boton1].alpha,0.3);set(varA,1);comprobacion();" scale="5"/>
<plugin name="boton1b" url="imag/cuadrado_a.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton1a" url="imag/cuadrado.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
<hotspot name="boton2" url="imag/estrellita_azulclaro.png" enabled="true" zorder="1" distorted="true" handcursor="false" ath="10" atv="0" width="20" height="20" edge="center" ox="0" oy="0" alpha="1" onclick="tween(plugin[boton2b].rotate,0);tween(plugin[boton2b].alpha,1);tween(hotspot[boton2].alpha,0.3);set(varB,1);comprobacion();" scale="5" />
<plugin name="boton2b" url="imag/cuadrado_b.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton2a" url="imag/cuadrado.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
<plugin name="boton3b" url="imag/cuadrado_1.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton3a" url="imag/cuadrado.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
</scene>
<scene name="cubo_02" title="cubo_01" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" />
<image><cube type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" /></image>
<hotspot name="boton3" url="imag/estrellita_amarilla.png" enabled="true" zorder="1" distorted="true" handcursor="false" ath="0" atv="-20" width="20" height="20" edge="center" ox="0" oy="0" alpha="1" onclick="tween(plugin[boton3b].rotate,0);tween(plugin[boton3b].alpha,1);tween(hotspot[boton3].alpha,0.3);set(varA,1);comprobacion();" scale="5"/>
<plugin name="boton1b" url="imag/cuadrado_a.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton1a" url="imag/cuadrado.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
<plugin name="boton2b" url="imag/cuadrado_b.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton2a" url="imag/cuadrado.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/><plugin name="boton3b" url="imag/cuadrado_1.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton3a" url="imag/cuadrado.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
</scene>
Display More