Slow the speed of hiding an element

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
JMonaco
Posts: 20
Joined: Thu Jul 05, 2018 11:43 am
Location: California
Contact:

Now that I have hiding an element, a tint, on mouse click working correctly, it feels that it would be more pleasant to hide the element over say a 0.5 or 1 second period. Less jarring. How might one achieve that?
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Using a logic block on an objects alpha you can active a transition and then set a time from that for the action to take place.

Here's a quick output: https://s3-ap-southeast-2.amazonaws.com ... index.html

Here's the project and skin:
project_skin.zip
(4.93 KiB) Downloaded 160 times
cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi John,
If this is a follow on from your last post then rather then use the Visible settings to hide an element you can use the Alpha setting to fade out an element.
Make sure you use Change Alpha rather then Set Alpha. This will also allow for a delay time.
Cheers,
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/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Hopki,

Love how there are always different options to define actions in P2VR skins.

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

:D Yeah, how many ways to kill that cat!
But if it was a follow on then John was using actions.

IMO variables are more for global events such as popups, if for example you had five popups then you can use a numbered variable.
0 = all close
1 = show popup one
2 = show popup two
etc.

So when a popup is opened with its variable number the rest will hide.
But in this case where you have a singles splash screen then just an action is fine.
I guess you could argue that in that case as there is two elements then they could use a variable to hide both at the same time, but as said as the project is already using actions I just went with the flow :D

Cheers,
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/
User avatar
JMonaco
Posts: 20
Joined: Thu Jul 05, 2018 11:43 am
Location: California
Contact:

Woo hoo! Figured it out after watching more video tutorials. Then checked here for replies and it turned out that I wound up using Hopki's & Tony's suggestions of changing alpha. Appearance default Alpha=1. Created a Logic Block (this morning's lesson) when *var1 = 1, change Alpha to 0, with transition of 1 second. Established the variable to change to one on mouse click. The transition looks more polished in my view. This is a pretty awesome S/W package! https://www.sierraproaerial.com/360_aer ... rial_land/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

John,

Looks great nice fade :D

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
JMonaco
Posts: 20
Joined: Thu Jul 05, 2018 11:43 am
Location: California
Contact:

Thanks Tony!
Post Reply