Wondering if there is a way to trigger/set a variable by mouse interaction without having to use a hotspot or button.
I want to be able to create elements that fade out if the scene isn't being engaged, and when it does get interacted with, visual elements return.
Just like it does in this example.
https://artsandculture.withgoogle.com/e ... point-tour
Any ideas would be appreciated.
Thank you.
-d e o n
Non Button data — Pano interaction
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi d e o n,
This would be done with a variable and timer.
Click anywhere in the blank canvas of the skin editor and add a variable, example: show_elements => True/False => true.
Add a timer to the skin.
Set the timers properties to:
Timeout, say 5 seconds
Type, Player inactive
Repeat , One time
Then give the timer the actions.
Source: Deactivate
Action: Set Variable Value
Variable Name: show_elements
Operation: Set(=)
Value: false
Source: Activate
Action: Set Variable Value
Variable Name: show_elements
Operation: Set(=)
Value: true
Now any elements that you want to fade out set a logic block under its Alpha.
Click to open logic block and set the following:
What will happen is the project will open with the elements visible. If no interaction is made, after the timers, timeout vale the elements that have the Alpha logic block set will fade out to Alpha 0.2. As soon as you interact with the Pano they will return back to Alpha 1.00.
Of course you can use the same logic block under a position logic block, so when elements fade out some can slide off screen.
Regards,
Hopki
This would be done with a variable and timer.
Click anywhere in the blank canvas of the skin editor and add a variable, example: show_elements => True/False => true.
Add a timer to the skin.
Set the timers properties to:
Timeout, say 5 seconds
Type, Player inactive
Repeat , One time
Then give the timer the actions.
Source: Deactivate
Action: Set Variable Value
Variable Name: show_elements
Operation: Set(=)
Value: false
Source: Activate
Action: Set Variable Value
Variable Name: show_elements
Operation: Set(=)
Value: true
Now any elements that you want to fade out set a logic block under its Alpha.
Click to open logic block and set the following:
What will happen is the project will open with the elements visible. If no interaction is made, after the timers, timeout vale the elements that have the Alpha logic block set will fade out to Alpha 0.2. As soon as you interact with the Pano they will return back to Alpha 1.00.
Of course you can use the same logic block under a position logic block, so when elements fade out some can slide off screen.
Regards,
Hopki
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/
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/