Slow the speed of hiding an element

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

Slow the speed of hiding an element

Post by JMonaco » Wed Jul 11, 2018 4:46 am

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: 541
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Slow the speed of hiding an element

Post by Tony » Wed Jul 11, 2018 6:41 am

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 11 times
cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

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

Re: Slow the speed of hiding an element

Post by Hopki » Wed Jul 11, 2018 10:53 am

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

User avatar
Tony
Posts: 541
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Slow the speed of hiding an element

Post by Tony » Wed Jul 11, 2018 11:41 am

Hi Hopki,

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

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

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

Re: Slow the speed of hiding an element

Post by Hopki » Wed Jul 11, 2018 12:27 pm

: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

User avatar
JMonaco
Posts: 17
Joined: Thu Jul 05, 2018 11:43 am
Location: California
Contact:

Re: Slow the speed of hiding an element

Post by JMonaco » Wed Jul 11, 2018 6:56 pm

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: 541
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: Slow the speed of hiding an element

Post by Tony » Wed Jul 11, 2018 11:55 pm

John,

Looks great nice fade :D

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

User avatar
JMonaco
Posts: 17
Joined: Thu Jul 05, 2018 11:43 am
Location: California
Contact:

Re: Slow the speed of hiding an element

Post by JMonaco » Fri Jul 13, 2018 1:38 am

Thanks Tony!

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests