Just as you can make an animation from a vertical strip frames (eg hotspot), is it possible to do it from a horizontal strip?
My program generates only horizontal strips.
PNG frames horizontally
-
-
Simply replace the pair of parameters offset animation. That's one of the standard examples:
Code
Display More<hotspot name="hs1" style="hs-animate" ath="324.93" atv="3.20" keep="true" devices="all" onhover="" onclick="" /> <style name=hs-animate" url="hs_anima.png" crop="0|0|128|128" keep="true" zorder="99" scale="0.7" align="center" framewidth="128" frameheight="128" frame="0" lastframe="5" onloaded="hs_animate(); /> <action name="hs_animate"> inc(frame,1,get(lastframe),0); mul(ypos,frame,frameheight); txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight)); delayedcall(0.1, if(loaded, hs_animate() ) ); </action>
Change the parameters in Action:
mul(xpos,frame,framewidth );
…
txtadd(crop,'0|',get(xpos), …
That's all! -
Thank you very much your help.
I have ridden an example with horizontal strip (left) and vertical (right): http://www.imaginartejuegos.com/ijLAB/ejemplo_…spotanimado.htm
As you can see on the right is working properly, but not the left.
The code used is this:Code
Display More<hotspot name="hs1" style="hs-animate" ath="-30" atv="0" keep="true" devices="all" onhover="" onclick="" /> <style name="hs-animate" url="posibilidades/imag/ojos-tira300.png" crop="0|0|300|300" keep="true" zorder="99" scale="1" align="center" framewidth="300" frameheight="300" frame="0" lastframe="23" onloaded="hs_animate();" /> <action name="hs_animate"> inc(frame,1,get(lastframe),0); mul(xpos,frame,framewidht); txtadd(crop,'0|',get(xpos),'|',get(framewidth),'|',get(frameheight)); delayedcall(0.1, if(loaded, hs_animate() ) ); </action> <hotspot name="vs1" style="vs-animate" ath="30" atv="0" keep="true" devices="all" onhover="" onclick="" /> <style name="vs-animate" url="posibilidades/imag/tiradados1.png" crop="0|0|130|1230" keep="true" zorder="99" scale="1" align="center" framewidth="130" frameheight="130" frame="0" lastframe="15" onloaded="vs_animate();" /> <action name="vs_animate"> inc(frame,1,get(lastframe),0); mul(ypos,frame,frameheight); txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight)); delayedcall(0.1, if(loaded, vs_animate() ) ); </action>
What is my mistake? -
Hi,
QuoteWhat is my mistake?
here:
txtadd(crop,'0|',get(xpos),'|',get(framewidth),'|',get(frameheight));you need to swap x and y - correct would be:
txtadd(crop,get(xpos),'|0','|',get(framewidth),'|',get(frameheight));Best regards,
Klaus -
Thank you very much Klaus.
In addition to the error that you show me a little more I found another in the line above with "framewitdht".
You can see the end running on http://www.imaginartejuegos.com/ijLAB/ejemplo_…spotanimado.htmTake this opportunity to congratulate you on the latest version of krpano and VTOUR interface.
Greetings
Agustín -
Exactly what I needed.
Thank you very much to everyone -
Hi,
IS it possible to don't have a drop (the hotspot would stay constantly visible) in this animation?
I'd like to put like an animated glow effect around the hotspot, so the hotspot needs to remain visible all time.Thanks.
Steph.:-) -
UPDATE!
Now I myself want to use animation without flash file(swf) on any device!
But the question is: how to make simple animation with cross-fade effect to make the transition frame by frame?Frame#1 -->fade 0.5 sec --> Frame#2 --> fade 0.5 sec --> Frame#3… action to stop or replay and etc.
I understand that can be done using the individual layers with pictures and action "tween alpha", but I want this to be a separate action without a write action in each layer/plugin image! This is is possible?
Any suggestions or idea!? I'm deep in thought!
-
-
Yes, like this!
Basic fade: A->B->C
Earlier I used a flash file with any animation and alternative flat image for html5 versions.
Ось такі справи, друже) -
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!