You are not logged in.

1

Tuesday, May 31st 2016, 1:59pm

Delayed call?

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:

Source code

1
2
3
4
5
6
7
8
9
		<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:

Source code

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


Any pointers?

Thanks in advance!
Bas

This post has been edited 1 times, last edit by "Baski" (May 31st 2016, 9:55pm)