choosing colour at runtime

Get help using Construct 2

Post » Thu Nov 21, 2013 2:37 pm

I want my user to select the colour for the hero at runtime.

I want to present the colur palette and let the user click on the colour she/he wants. How would one implement this feature. OK you could have three input boxes for RGB but I want it to be more elegant.

thx for your help in advance!

byebye
moxBorealis
B
9
S
3
Posts: 88
Reputation: 931

Post » Thu Nov 21, 2013 4:20 pm

I use the Tint effect when I want to modify the color of my sprites (like to simulate ambient light). But this applies to the whole sprite. In order to recolor parts of a character individually, I think you have to break it into separate sprites. I don't think there is any native way to access the RGBA channels individually, which is an easy way to create masks
B
12
S
5
G
2
Posts: 132
Reputation: 2,627

Post » Thu Nov 21, 2013 5:21 pm

A slider maybe.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Thu Nov 21, 2013 6:09 pm

thx guys, thx Zatyka on slider and color chooser example :)

I implemented a set of 16 colors by cumbersome click on example sprite - set R G B variables for now. (maybe future design polish) :)

byebye
moxBorealis
B
9
S
3
Posts: 88
Reputation: 931

Post » Thu Nov 21, 2013 6:10 pm

ok zatykas post is gone 8) ...
B
9
S
3
Posts: 88
Reputation: 931

Post » Sat Nov 23, 2013 2:05 pm

My current implementation is not elegant but it works. I just have to clean up this quantity of click on sprite + animation frame = x - > set R G B variables.

Any ideas?
:)

byebyemoxBorealis2013-11-23 17:19:44
B
9
S
3
Posts: 88
Reputation: 931


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 2 guests