• With a lot of copy/paste and trial and error, since I'm really a n00b in coding I managed to create a tour especially built for VR. Now the client tried it on his ipad and ofcourse the hotspots won't show by hovering your finger over it ;) So I made a switch for that.

    This is the code I used:

    Code
    <hotspot name="hs1" url="hotspots/infoknop.png" height="40" 
    width="40" distorted="true" zorder="1" ath="32.673" atv="-20.631"  
    onover="tween(hotspot[hs1_txt].alpha,1)" 
    onout="tween(hotspot[hs1_txt].alpha,0)"
    onclick="switch(hotspot[hs1_txt].alpha, 0, 1);" />
       
     	<hotspot name="hs1_txt" url="hotspots/HS1.png" alpha="0" 
    zorder="2" ath="32.673" atv="-20.631"  distorted="true" enabled="false" 
    />


    But I much rather like to have a hotspot pressed, make it show the target and tween back to alpha 0 after a few seconds.
    I've browsed the forums and saw some info about 'delayedcall', but I didn't get it to work yet.

    Edit: This is what I figured should work, now just need to get some delay for the 'onup' state:

    Code
    ondown="tween(hotspot[hs1_txt].alpha,1)" onup="tween(hotspot[hs1_txt].alpha,0)"

    Any pointers?

    Thanks in advance!
    Bas

    Edited once, last by Baski (May 31, 2016 at 9:55 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!