How to apply a custom-coloured filter?

New releases and general discussions.

Post » Tue Oct 04, 2011 4:11 pm

Hi! I'd like to know if I can let the user select a colour in CommonDialogue and then apply that colour to a sprite's filter color. Is it possible?RecGames2011-10-04 16:14:31
Borka223 from RecGames
B
14
S
4
G
5
Posts: 39
Reputation: 2,987

Post » Tue Oct 04, 2011 8:52 pm

Yes, but you will need to wait a tick to allow the picker to grab from the gpu.
Something like:
+ CommonDialog: Colour dialog: OK
-> Function: Call function "getcolor" after 23 ms
+ Function: On function "getcolor"
-> Sprite: Set filter to CommonDialog.Colour

Using the "Use Expression" feature by right clicking where you set the color.
Image Image
B
161
S
48
G
91
Posts: 7,357
Reputation: 67,269

Post » Wed Oct 05, 2011 12:45 pm

Thank you very much, but I needed only the part:

"-> Sprite: Set filter to CommonDialog.Colour

Using the "Use Expression" feature by right clicking where you set the color." RecGames2011-10-05 12:46:04
Borka223 from RecGames
B
14
S
4
G
5
Posts: 39
Reputation: 2,987


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests