Hey all,
A few months back I added sidescrolling to my tours. I had 2 plugins on the left and right of the screen, when people put their mouse over it, they scrolled to the left or right. This was for the people that didnt grasp the concept of click and drag, to view a panorama.
<plugin name="left" url="../images/whitemask.png" keep="true" visible="true" alpha="0" handcursor="false" zorder="98" align="left" width="10%" height="100%"
onover="tween(plugin[left].alpha, 0.1);set(movevectorx,-0.2);"
onout="tween(plugin[left].alpha,0);set(movevectorx,0);" />
<plugin name="right" url="../images/whitemask.png" keep="true" visible="true" alpha="0" handcursor="false" zorder="98" align="right" width="10%" height="100%"
onover="tween(plugin[right].alpha, 0.1); set(movevectorx,+0.2);
"onout="tween(plugin[right].alpha, 0);set(movevectorx,0);" />
Now I want to take this 1 step further. I want those things alsoo on the top and bottom. That's an easy fix, just turn m around I hear you say. But thats not all. I want them to respond more precisely. If someone puts his mouse in the topleft corner, he should pan and tilt to the top left. I could create an 8 way grid (topleft, topcenter, topright, left, right, bottom left, bottom center, bottom right). But before I do that, Is there an easier way to accomplish this?
Can't I just create a rectangle with nothing in the center, and when the user goes with the mouse over the border, krpano puts mousefollow on true or someting? But just for those edges. And drag for the rest of the area.
I think i've seen an example somewhere (the guy had a black border that showed up when mouse whent over, with an arrow in all directions)
This is for the childrens game I'm making.