I followed a sample for generating random coordinates for animated PNG's, but currently, the random generation only occurs in one area of the frame, I'd like for it to occur in the entire 360º environment. How might I do this? Here is the piece of code I'm currently using:
|
Source code
|
1
|
<hotspot name="hs4" url="red.png" onloaded="do_crop_animation(5,5, 5)" alpha="0.5" ath="calc:random*90- 45" atv="calc:random*60 - 30" distorted="true" zoom="true" enabled="false" onlastframe="calc(ath, random*90-45);calc(atv, random*60-30);"/>
|