Detect Panorama Movement

Post Reply
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

This component detects when the panorama is moving.
This can be due to click and drag or when autorotate is being used.

movement2.gif
movement2.gif (1.36 MiB) Viewed 5812 times

How it works, the component adds a container to the skin with the ID: _code_detect_panorama_movement
This has the required code needed to make the component work.
It also adds a true/false variable with the name: panoramaMoving

The variable is false when the panorama is at rest.
As soon as the panorama is moved, either panned or tilted the variable turns to true.
The variable can be used with logic blocks, actions filters and also with a Variable Changed source action to trigger an action.
Regards,
Attachments
detect_movement.ggskc
(7.83 KiB) Downloaded 268 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
paolodalprato
Posts: 9
Joined: Fri Nov 02, 2018 1:06 pm

Smart solution, as expected of you.
When I had to solve the same problem I solved it by checking the values of $ (ap) $ (at) $ (af), I needed to check the zoom as well
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

I can not take all the credit for this, it was a customer question which we then had a think about :D
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi paolodalprato,
No, what you want to do can be done with a timer, Player inactive setting.
Then in the timer set a deactivate, Open Next Panorama, going back to the start node.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply