Is there a way to make it so colors change to another?
AngryBoi
Member Posts: 586
In my new project I am working on, it will be a small game, so I want some sick effects! Lets say I have the color purple, is there a way to make that color change to another without just switching, but like blending into it?
Comments
Use the behavior 'Interpolate' > self.color to 'what you want.
dapion.de
[https://twitter.com/dapionde?]
You could do 'RULE' then the collision or touch or key, 'Every=***' :do: 'Change Attribute=self.color.blue/green/red' :to: 'self.color.blue/green/red+0.01' .
Like @dapion said,
You would have to interpolate
self.color.red to a value between 0 and 1
self.color.green to a value between 0 and 1
self.color.blue to a value between 0 and 1
The color in self.color has a max of 1. So you can change the color from 1,0 and anything in between
@jdlcrater @RabidParrot @dapion Thanks guys:) but can I only use those colors?
Yes; but they can mix any way you like.
@MoneyBags
I have a tutorial you can download,
http://forums.gamesalad.com/discussion/75244/free-rgb-number-random-color-template#latest
that's more than enough man
dapion.de
[https://twitter.com/dapionde?]
Thanks guys! It works great
By adjusting the RGB (Red,Green,Blue) values you have 16,777,216 colors to chose from.