Get Layer Opacity

For questions about using Classic.

Post » Thu Feb 10, 2011 6:24 pm

Greetings Constructors,

just a short question because I did not found a heads on answer via help.
I want to create smooth transitions (fade in/out) of menuboxes and dialogs with the
layer opacity. Is there an event to get the opacity of a given layer?

like:
IF layer.Exit Dialog.opacity < 100
SET layer.Exit Dialog.opacity to get.Exit Dialog.opacity+1

The only event option in layers I have is "is layer visible".

Greetings
Soulsliver
B
5
G
1
Posts: 22
Reputation: 919

Post » Thu Feb 10, 2011 6:41 pm

Use system > compare, LayerOpacity(number) or LayerOpacity(layer name).

http://sourceforge.net/apps/mediawiki/c ... xpressions
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Thu Feb 10, 2011 6:48 pm

Hey Arima,

youre a lifesaver you know? ;)
Thank you! Page is bookmarked. Im sorry for a question like
that. Ive come very far in my progress without a single question
here and... expressions. Next time I will double check the Wiki.
Sorry again to pump another stupid question into the forum.

Greetings
Soulsliver
B
5
G
1
Posts: 22
Reputation: 919

Post » Thu Feb 10, 2011 6:55 pm

Hey, no worries. That's what the support forum is here for. :)
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest