Replace color effect

Get help using Construct 3!

Post » Mon Sep 18, 2017 10:55 am

I have a white sprite that needs to change colour depending on certain outcomes.

For the sprite in the layout view I've creates three effects - ReplaceColor, ReplaceColorGreen, ReplaceColorRed.

How do I activate these in the events sheet?

I thought it would be as simple as:

Touch > On touched > ButtonYes > AnswerPanelYes > Enable effect"ReplaceColorGreen"

But that does nothing.
B
9
S
3
G
3
Posts: 97
Reputation: 2,371

Post » Mon Sep 18, 2017 4:22 pm

in Events:

Object Actions - set effect parameter:
Name = "ReplaceColor"
Parameter = the parameter which you want to change (0 would be source color)
value = value
B
5
S
1
Posts: 18
Reputation: 428

Post » Mon Sep 18, 2017 5:17 pm

Would that be two effects? One stacked inside under the other?

Or is it a single line of event and actions?
B
9
S
3
G
3
Posts: 97
Reputation: 2,371

Post » Mon Sep 18, 2017 5:51 pm

Touch > On touched > ButtonYes > AnswerPanelYes > Set Effect Parameter....

with one action you can change 1 parameter of an effect
B
5
S
1
Posts: 18
Reputation: 428

Post » Tue Sep 19, 2017 8:19 am

But isn't that what I already had? ---

Touch > On touched > ButtonYes > AnswerPanelYes > Enable effect"ReplaceColorGreen"

With "Enable effect"ReplaceColorGreen"" being the parameter? Or is the parameter something I set elsewhere that references "ReplaceColorGreen"?
B
9
S
3
G
3
Posts: 97
Reputation: 2,371

Post » Wed Sep 20, 2017 1:40 pm

Can someone let me know what i'm meant to type into these boxes?

Image
B
9
S
3
G
3
Posts: 97
Reputation: 2,371

Post » Fri Sep 22, 2017 4:17 pm

OK, what am i doing wrong here?

Image

I thought this was correct, but all this action does is colour AnswerPanelYes/AnswerPanelNo with a greyed out red colour.

Neither the green or red from the effects panel replace the original grey colour (34, 34, 34)

Can anyone help with this?

Is ReplaceColor even the right/wrong effect to use in this situation?
B
9
S
3
G
3
Posts: 97
Reputation: 2,371


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests