You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Tuesday, May 12th 2020, 5:36pm

Switch to Next pano while navigating ?

Is there a way to transition to the next pano while navigating with W,A,S,D keys. The idea is that stead of clicking on hot spots the user could switch to the next pano in the direction we are navigating.



Tuesday, May 12th 2020, 6:56pm


You can use keycode to do this.

Create an event and an action something like this:

Source code

	<events onkeydown="checkkey();" />
	<action name="checkkey">	
trace('keycode=', keycode);
if(keycode == 78, skin_nextscene_loop(+1));	
if(keycode == 80, skin_nextscene_loop(-1));

78 is the keycode for "n" or next and 80 is the keycode for "p" or previous.

Hope this helps.



Tuesday, May 12th 2020, 9:13pm

Thanks Lastwolf,

But this will just move to the next pano, What I want is to automatically switch to the next pano depending on the direction the user is navigating, Like this example by everpano

look at the very bottom of the page.

In fact this example has the 2 things I want to accomplish, the directional switching of panos and the limit of the camera so you don't run trough walls.
Unfortunately that plugin in just works with everpano.