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
25
S
5
G
3
Posts: 446
Reputation: 5,633

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
19
S
6
G
7
Posts: 1,205
Reputation: 7,298

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: Kagubro and 34 guests