Tint Plus

For questions about using Classic.

Post » Tue Jun 16, 2009 1:32 pm

Can I set R, G or B indibidually in color filter?
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Tue Jun 16, 2009 2:28 pm

Yeah, just use an expression with the set filter action.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Wed Jun 17, 2009 12:06 pm

So, If I want to changed the red value of the filter, what I need to put as expression? How can I let Green and Blue untouched? Something like this?

RGB(newRed, GetGreen(object.Filter), GetBlue(object.Filter))
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Post » Wed Jun 17, 2009 1:13 pm

Exactly that.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Thu Jun 18, 2009 10:46 am

Thanks for the help !!! I have uploaded a tittle demo with the lighting system. Lights gradient are in one layer and affetcs only to ground texture. The main character and "future" objects are tinted with filter RGB manipulation depending lights color. The physiscs are also event based.

Right click to move
[url:1ahdtuhr]http://files.getdropbox.com/u/472186/Construct/Forums/Cap/lights.zip[/url:1ahdtuhr]
B
30
S
15
G
10
Posts: 285
Reputation: 7,144

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests