Changing background color "on demand"

Discussion and feedback on Construct 2

Post » Sun Jul 27, 2014 6:59 am

Hi,

I am using Tiledbackground to create a sold background color, and am setting text color to contrast well with the background.

I'd like to allow the user to configure the color pallete for the game. This means that the user can choose a different background color and text color. I couldnt see a way to change color for tiled background only to load an image from a URL. I tried to load an image using the image name only, like in AJAX file load, but this failed.

Is there a way to change colors programmatically both background and text.

thanks,

Dan
B
8
S
4
G
1
Posts: 205
Reputation: 1,354

Post » Sun Jul 27, 2014 6:13 pm

Try adding one of these effects to your background: "Adjust HSL" or "Set Color".
Then let the user set their parameters.
See if that gets you what you want.
Let me know if you need more help.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Sun Jul 27, 2014 6:24 pm

Set layer background color
Set the background color of a layout. Note if the layer is transparent, setting the background won't change the appearance unless you also make the layer opaque.

This could help if you let the user choose the r, g, and b value I guess
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Mon Jul 28, 2014 5:40 am

Great! thanks.
B
8
S
4
G
1
Posts: 205
Reputation: 1,354


Return to Construct 2 General

Who is online

Users browsing this forum: Prominent and 10 guests