color changing

Game Editor comments and discussion.

color changing

Postby Caaz Games » Fri Mar 16, 2007 9:05 am

is there a way to change the color of the text? :?:
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby makslane » Fri Mar 16, 2007 1:03 pm

Change the r, g, b variables.
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby Sgt. Sparky » Fri Mar 16, 2007 6:30 pm

makslane wrote:Change the r, g, b variables.

the text must be white for you to do that accuretly :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Caaz Games » Sat Mar 17, 2007 12:54 am

how would i do that?
EDIT: i found out, but why is b yellow and g is pink and r is blue?
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Troodon » Sat Mar 17, 2007 6:37 am

Caaz, they are just like colour filter values so don't imagine that it's a paper where you add colours. :D
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Sgt. Sparky » Sat Mar 17, 2007 6:50 am

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
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby kes » Sat Mar 24, 2007 3:12 am

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
kes
 
Posts: 7
Joined: Sun Feb 18, 2007 9:24 pm
Score: 1 Give a positive score

Postby Troodon » Sat Mar 24, 2007 12:27 pm

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:
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Kodo » Sat Mar 24, 2007 12:32 pm

Here it is.. Monty Pythons Finland...
http://www.mwscomp.com/sounds/mp3/finland.mp3
Inogames: http://www.inogames.com iOS gaming
Firetop Adventure (app store): http://itunes.apple.com/us/app/firetop- ... ?mt=8&ls=1
User avatar
Kodo
 
Posts: 449
Joined: Thu Oct 20, 2005 8:20 pm
Location: UK
Score: 23 Give a positive score

Postby Troodon » Sat Mar 24, 2007 12:44 pm

:shock:


:D Hahahahah :lol:
Weird song
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby DilloDude » Sat Mar 24, 2007 12:55 pm

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.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Caaz Games » Sat Mar 24, 2007 1:00 pm

yea i found out about the color changing thing after messing with stuff.

P.S. cool avatar dillodude.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby UltimatHedgehog » Sat Mar 24, 2007 3:36 pm

Kodo wrote:Here it is.. Monty Pythons Finland...
http://www.mwscomp.com/sounds/mp3/finland.mp3


that song weird but funny:lol:
Image
I always thought Hell would be a giant load screen that goes on for eternity, then one day, eons later, it would end, only to reveal a slightly different loading screen.
User avatar
UltimatHedgehog
 
Posts: 325
Joined: Fri Jan 19, 2007 1:48 pm
Location: http://downloads.khinsider.com/?u=112542 plz click
Score: 10 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron