Hi,
I have got a simple problem. I`m searching and do not find the answer
How to animate a hotspot? I have got a png file (20 images in vertical).
I will be grateful for any link which helps me to find the answer or to any tutorial for very beginners.
How to animate a png hotspot?
-
-
hi ,
you have to insert this lines in your hotspot :
<hotspot name="spot3" onclick="mainloadpano(visite.xml);" url="hotspot.png" crop="0|0|65|65" frame="0" lastframe="9" frameheight="65" framewidth="65" onloaded="set(stopSequence,false);animate(spot3,0.1);" onhover="showtext(Vers vue 1);" ath="39.4635" atv="27.7889"/>
hotspot png: http://fr.packupload.com/MYWGHU86V9U
so you can use a swf hotspot .
-
Hi,
I have got a simple problem. I`m searching and do not find the answer
How to animate a hotspot? I have got a png file (20 images in vertical).
I will be grateful for any link which helps me to find the answer or to any tutorial for very beginners.
Hi,
It's same task is was resolved! See this link:
http://www.imaginartejuegos.com/ijLAB/ejemplo_…spotanimado.htmAnd this ready work example (vertical and horizontal type strip of images):
http://www.imaginartejuegos.com/ijLAB/ejemplo_…spotanimado.htmGood luck!
-
Thanks!
-
I do not really understand what does it mean:
crop="0|0|65|65" frame="0" lastframe="9" frameheight="65" framewidth="65" onloaded="set(stopSequence,false);animate(spot3,0.1);"
my hotspot is in attachment. How can I fit it to the code?
-
when i look to your strip the width is 64 pixels..so lets say the height is 64 as well which it is..
crop="0|0|65|65" means crop="x-position of frame| y-position of frame | width of frame | height of frame"
frame="0" is first frame
lastframe… speaks for it self
so i would say copy the code from the example or output of the droplet and change like:
Code
Display More<action name="hotspot_animate"> inc(frame,1,get(frames),0); mul(ypos,frame,frameheight); txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight)); delayedcall(0.03, hotspot_animate() ); <!-- here you set the speed of the frame change --> </action> <style name="skin_hotspotstyle" url="hotspot.png" crop="0|0|64|64" frames="20" framewidth="64" frameheight="64" frame="0" onloaded="hotspot_animate();" altonloaded="if(isphone, mul(scale,2)); onloaded();" scale="1" edge="top" oy="0" onclick="loadscene(get(linkedscene),null,MERGE,BLEND(1)); " />
that should work i think..
Hope it helps..
Tuur
-
It works! Thank You!
-
Hi,
It's same task is was resolved! See this link:
http://www.imaginartejuegos.com/ijLAB/ejemplo_…spotanimado.htmAnd this ready work example (vertical and horizontal type strip of images):
http://www.imaginartejuegos.com/ijLAB/ejemplo_…spotanimado.htmGood luck!
How can I stop the animation playback -
How can I stop the animation playback
Hi!
You must see this:
https://krpano.com/forum/wbb/inde…ation#post33248
or this:
https://krpano.com/forum/wbb/inde…ation#post43745It's worked!
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!