Setting color - any way to put hex?

Get help using Construct 2

Post » Fri Jan 31, 2014 1:23 pm

Hello,

I'm trying to "develop" some test games in Construct2. Before that I was developing in pure languages.

One thing in c2 makes me mad. Is there any way to set colors in hex value?

here example:
screencast.com/t/xrrtmESzuqyt
B
3
Posts: 3
Reputation: 181

Post » Fri Jan 31, 2014 2:40 pm

B
163
S
120
G
9732
Posts: 42
Reputation: 4,875,331

Post » Fri Jan 31, 2014 4:08 pm

Although not recommanded, you could also use the Browser object ExecJS expression, but I guess it's okay for test games !

Set color to Browser.ExecJS("parseInt('" & someHexValue & "', 16);")

You can also wrap this in a function, like aruche did with his method.

Anyhow, it seems that an official way of parsing hex values is lacking, and could be suggestion for a future feature !
B
67
S
28
G
24
Posts: 970
Reputation: 18,675


Return to How do I....?

Who is online

Users browsing this forum: DarknessGamingDK, webebiz and 4 guests