Variable / RGB Color Filter

New releases and general discussions.

Post » Fri May 21, 2010 4:00 am

Perhaps it's already possible, since it seems like it should be, but how can we set variable color filters?

The only way I know how to do this is to have overlaying sprites that have variable opacity settings, which is just too much.

Am I missing a basic function of Construct, or is this a valid feature request?
B
3
S
1
G
4
Posts: 37
Reputation: 1,299

Post » Fri May 21, 2010 4:39 am

Already possible, and oddly enough its called set color filter. You should be able to find it under the sprite actions, appearance I believe. Then you can set r,g, and b by right clicking the color selector and choosing "use expression".
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Post » Mon May 24, 2010 2:36 am

Yes! I had a bad feeling I was just missing something obvious. Thanks for pointing it out for me :lol:

Edit: Spoke too soon. Exactly how do I use an expression?

I choose "Set Colour Filter" and choose "Custom Color", but how can I give it an expression when the fields only accept numbers. Perhaps I misread or simply misunderstood what you meant, but in any case I still don't know how to do this.

Edit 2: Durr I could of sworn that I had tried that, but turns out I didn't! For anyone who doesn't know, you must right click just above the color, where it says "Filter".

Although it did give me an error... something about JazzUpTellTaleButton or something. Not sure.
B
3
S
1
G
4
Posts: 37
Reputation: 1,299

Post » Thu May 27, 2010 2:22 am

Right click the bar and press "use expression". after that, use the "rgb(R,G,B)" expression to make up an expression.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 7 guests