Page 1 of 1

FADE OUT SKIN ELEMENTS

Posted: Sun Jan 08, 2017 1:48 pm
by benmckaydesigns
Hi I would like to know the easy way how to make a skin element fade out when clicked on in stead of disappearing suddenly using the hide element function. Just to make the skin a bit more stylish...

THANKS!

Re: FADE OUT SKIN ELEMENTS

Posted: Sun Jan 08, 2017 4:07 pm
by Hopki
Use a change element Alpha action rather than a show and hide.
Example:
mouse click, change element alpha, alpha: 1.000, element = show
mouse click, change element alpha, alpha: 0.000, element = hide

The fade uses a set time and can not be changed however if you use a logic block you can set the time in seconds.

Example:
Set a variable in the skin, something like: fade, True/False, true.
The element would have it's alpha set to 0.000.
Then under the elements alpha logic block set: fade* = false Alpha = 1.000.
Then select Transition and set the time.

A button in the skin would then have the action: mouse click, set variable value, fade, Not(¬).
The operation Not(¬) will toggle the variable.
Regards,
Hopki

Re: FADE OUT SKIN ELEMENTS

Posted: Tue Jan 31, 2017 1:21 pm
by benmckaydesigns
Thanks!!

Really appreciated