Page 1 of 1

color changing

PostPosted: Fri Mar 16, 2007 9:05 am
by Caaz Games
is there a way to change the color of the text? :?:

PostPosted: Fri Mar 16, 2007 1:03 pm
by makslane
Change the r, g, b variables.

PostPosted: Fri Mar 16, 2007 6:30 pm
by Sgt. Sparky
makslane wrote:Change the r, g, b variables.

the text must be white for you to do that accuretly :D

PostPosted: Sat Mar 17, 2007 12:54 am
by Caaz Games
how would i do that?
EDIT: i found out, but why is b yellow and g is pink and r is blue?

PostPosted: Sat Mar 17, 2007 6:37 am
by Troodon
Caaz, they are just like colour filter values so don't imagine that it's a paper where you add colours. :D

PostPosted: Sat Mar 17, 2007 6:50 am
by Sgt. Sparky
look in configuration where you slect your colours, it displays an R, G, and B value :D
you can use that as an example :)
EDIT: tekdino, ever heard of a funny monty python song bout' finland?
acually it was Spamalot(alot like Hblade :lol:[no offence.])
*sings* dum de dum de duuum!
finland, finland, finland, that's the country for me!
*continues song*
EDIT AGAIN: no offence, the thought just crossed my mind :D

PostPosted: Sat Mar 24, 2007 3:12 am
by kes
if you want to change the color IN the game you'll have to use the script editor the code is something like this:

TextActor>Event>Script Editor:

Code: Select all
r = *number*;
g = *number*;
b = *number*;


you can play with this, for example in draw actor:

Code: Select all
r= (rand(255));
g= (rand(255));
b= (rand(255));


You can also change an actor's animation colours

PostPosted: Sat Mar 24, 2007 12:27 pm
by Troodon
Sgt. Sparky wrote:look in configuration where you slect your colours, it displays an R, G, and B value :D
you can use that as an example :)
EDIT: tekdino, ever heard of a funny monty python song bout' finland?
acually it was Spamalot(alot like Hblade :lol:[no offence.])
*sings* dum de dum de duuum!
finland, finland, finland, that's the country for me!
*continues song*
EDIT AGAIN: no offence, the thought just crossed my mind :D


:lol: :lol: I haven't heard about that song. :lol:

PostPosted: Sat Mar 24, 2007 12:32 pm
by Kodo
Here it is.. Monty Pythons Finland...
http://www.mwscomp.com/sounds/mp3/finland.mp3

PostPosted: Sat Mar 24, 2007 12:44 pm
by Troodon
:shock:


:D Hahahahah :lol:
Weird song

PostPosted: Sat Mar 24, 2007 12:55 pm
by DilloDude
The r, g and b variables are set to 255 on the actor's creation. If you want to make the actor red, you would put
Code: Select all
g = 0; b = 0;
on some event. If the original colour was red, you won't notice any difference. If it was white, it will now be red. If it was grey, it will now be a dull red. If it was green or blue, it will now be black. Most of the time, you will want it white or grey normally, although for some things you may want another colour. You can adjust the variables for multiple things, for example to make aplayer flash red when he gets hurt, or to have a gradient health icon, where green is full health and red is no health, with a gradient in between. (alternatively you could use an animation, but if you have a lot of states, this will be bad.)
The problem with changing text colour, though is that you can only change the hole actor, not individual characters. There are cases where it would be cool if you could change the colour and font of individual characters. This would probably be not that helpful and annoying to do, but at least there should be a function to change the font of a whole text actor.

PostPosted: Sat Mar 24, 2007 1:00 pm
by Caaz Games
yea i found out about the color changing thing after messing with stuff.

P.S. cool avatar dillodude.

PostPosted: Sat Mar 24, 2007 3:36 pm
by UltimatHedgehog
Kodo wrote:Here it is.. Monty Pythons Finland...
http://www.mwscomp.com/sounds/mp3/finland.mp3


that song weird but funny:lol: