How do I change color of sprite in a lerp?

Just started using Construct 2? Post your questions here

Post » Sun Jan 17, 2016 4:33 pm

I want from green to red. Sory if the my english not clear.
B
14
S
2
Posts: 66
Reputation: 776

Post » Sun Jan 17, 2016 5:26 pm

In unity very easy: Color.Lerp(Color.Green,Color.Red,1-health*0.01);
B
14
S
2
Posts: 66
Reputation: 776

Post » Sun Jan 17, 2016 9:04 pm

You can do it with an effect. Maybe set color? and just set the red, green and blue parameters from events.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507

Post » Sun Jan 17, 2016 10:49 pm

Please paste code here because i dont understand.
B
14
S
2
Posts: 66
Reputation: 776

Post » Sun Jan 17, 2016 11:17 pm

When you add an effect you can use an action in the event sheet to do it. My machine doesn't like webgl so I won't make an example.
B
92
S
32
G
110
Posts: 5,298
Reputation: 71,507


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest