You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

JLLG

Beginner

  • "JLLG" started this thread

Posts: 5

Occupation: Gestión

  • Send private message

1

Wednesday, August 15th 2018, 8:33pm

Open a single-layer access point and keep it open in the first loaded scene

Hello, I have knowledge at the beginner level and I would like to know what code to use to maintain a visible access point when clicking on a layer and that remains visible when I return to it and in the rest of the panoramas that the hotspot is not shown, Can someone help me? Thanks.


<layer name="intro_game"
url="img/introgame.png"
align="center"
width="prop" height="50%"
keep="true"
handcursor="true"
enabled="true"
visible="false"
alpha="0"
onclick=" show_cofre());"
/>

<hotspot name="cofre" url="img/cofre.png" keep="false" visible="false" ath="174.324" atv="18.885" scale="0.6" distorted="true" onclick="add_score_cofres(); hide_cofre();" />

<action name="show_cofre">
set(hotspot[cofre].visible, true);
set(hotspot[cofre].alpha, 0);
tween(hotspot[cofre].alpha, 1. 0.5);
</action>

<action name="hide_cofre">
tween(hotspot[cofre].alpha, 0.0, 0.5, default, set(hotspot[cofre].visible, false));
</action>

This post has been edited 1 times, last edit by "JLLG" (Aug 15th 2018, 8:58pm)