Variable in a RGB expression

Get help using Construct 2

Post » Fri Sep 20, 2013 12:43 pm

How do I give a...

rgb(red, green, blue) color attribute,

the values of centain Variables.

For instance:

A variable called Red changes from 100 to 255, during the game.

So that I want to make:   "rgb(Red, 25, 25)"

But this, just doesn't work because it asks me to use strings...

Anyone could provide help on this?
B
17
S
4
G
1
Posts: 105
Reputation: 1,874

Post » Fri Sep 20, 2013 1:02 pm

"rgb("&red&","&green&","&blue&")"newt2013-09-20 13:03:19
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806

Post » Fri Sep 20, 2013 1:26 pm

Thanks! It works properly.
B
17
S
4
G
1
Posts: 105
Reputation: 1,874

Post » Fri Sep 20, 2013 1:55 pm

I'm tying to use this here:

https://www.dropbox.com/s/v3ni0y0gnvlcmrp/waves.capxhttps://www.dropbox.com/s/v3ni0y0gnvlcmrp/waves.capx

My aim is to show a graph is a cosinus and then draw lines from white to black depending on the Y value showed.

How do you like the way It's being build?
B
17
S
4
G
1
Posts: 105
Reputation: 1,874

Post » Fri Sep 20, 2013 2:46 pm

Im guessing that's Podes Svg plug you have in there?

I dont have it, but I would suggest perhaps using Yanns polygon plug instead.
Image ImageImage
B
169
S
50
G
174
Posts: 8,331
Reputation: 110,806


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, Jackriduk and 23 guests