Request: Changing the "set color" function thing.

New releases and general discussions.

Post » Mon Dec 28, 2009 1:31 pm

From the version of construct I have , when I want to change the color filter on a sprite , it only accepts a predefined color.
Wouldn't an improvement be to actually have R G and B values? Because if I wanted a really badly looking laser sight , instead of randomly switching from one set color to another ,I could just do:
R:
200+(ceil(random(55))

which would give it a random bright reddish color.
B
3
G
3
Posts: 83
Reputation: 1,041

Post » Mon Dec 28, 2009 2:48 pm

Its not very obvious, but if you right click on a parameter you can select 'use expression'.
B
4
S
2
G
5
Posts: 641
Reputation: 3,011

Post » Mon Dec 28, 2009 10:26 pm

You can also use the system expression to get rgb, to set...rgb
[code:12uu5tfj]RGB(Red, Green, Blue)[/code:12uu5tfj]
....not sure about alpha.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests