Change sprite color during runtime

Get help using Construct 2

Post » Sat Mar 16, 2013 8:26 am

Hi, how do i change the color of a sprite to follow the color that i have click from another sprite? Thank you.

Image provided below.
B
3
Posts: 2
Reputation: 854

Post » Sat Mar 16, 2013 3:11 pm

Does the setcolor effect work on your sprite? If it does, that'll solve the changing colour part. Not quite sure how you'd pick the colour from the colour-sprite though.
B
26
S
6
G
4
Posts: 456
Reputation: 5,853

Post » Sat Mar 16, 2013 8:05 pm

[QUOTE=mdz] Hi, how do i change the color of a sprite to follow the color that i have click from another sprite? Thank you.
[/QUOTE]

You can use the Canvas plugin to change colors?

DEMO

CAPX

B
21
S
5
G
8
Posts: 1,215
Reputation: 7,834

Post » Mon Mar 18, 2013 5:30 am

@farflamex
Need it to work on a non webgl supported browsers and setcolor effect requires a webgl browser to work.

@chrisbrobs
Thanks for the demo and capx.
B
3
Posts: 2
Reputation: 854


Return to How do I....?

Who is online

Users browsing this forum: max2612, Yahoo [Bot] and 25 guests