Getting opacity from another object?

For questions about using Classic.

Post » Wed Sep 09, 2009 6:41 pm

I have a Sprite3 that creates Sprite4s all the time.
The Sprite3 is fading out with fade-behaviour and I want Sprite3 to create Sprite4 that has the same opacity as the Sprite3 is having at the moment of creating Sprite4.
(I'm also using fade-behaviour on Sprite4)

I don't get how to do this...

I've tried stuff like this:

--> Sprite4: Set opacity to "Sprite4.Opacity = Sprite3.Opacity"

and this:

--> Sprite4: Set fade maximum opacity to "Sprite4.Opacity = Sprite3.Opacity"

They don't work. Any help?
B
1
G
3
Posts: 2
Reputation: 829

Post » Wed Sep 09, 2009 6:53 pm

I am confused by the "Sprite4.Opacity = Sprite3.Opacity" :)
What it should be is just Sprite3.Opacity

That is, try:
Sprite4: Set fade maximum opacity to "Sprite3.Opacity"
B
3
S
1
G
3
Posts: 82
Reputation: 1,189

Post » Wed Sep 09, 2009 7:53 pm

You might try going without the fade behavior and make your own.
Or download the new version of sin that David just made, and use its opacity setting instead.
It does give the correct opacity readings btw.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests