Problem with R;G;B properties of Actor's text.
Posted: Mon Feb 16, 2009 3:57 pm
Greetings. I've discovered game-editor yesterday, and was playing with it a bit, but currently I've stuck: apparently, I don't understand something.
So, I make an actor (called "Next") with text, and use the font tools to make the text of some color, say, the word "NEXT" with values 0,0,255, making it blue. Okay, so, now I'm using, say, a Filled Region above the word which on action "MouseEnter" starts script Next.r=255;Next.g=0;Next.b=0;. It should turn the word NEXT red, but it doesn't, instead it makes it black.
Now, if at the beginning I'll create a white font (255,255,255) for Next actor, then the same script works flawlessly, making the word NEXT red on mouseover. Apparently, MyActor.r=255; does not turn the text red; it turns the text as red as it is possible to do within original parameters of given font. Is it so or am I missing something? Is it a bug or a feature? Is there a way around it?
Also, I wonder, if there is a way to have text with different colors in the same actor.
Thanks.
So, I make an actor (called "Next") with text, and use the font tools to make the text of some color, say, the word "NEXT" with values 0,0,255, making it blue. Okay, so, now I'm using, say, a Filled Region above the word which on action "MouseEnter" starts script Next.r=255;Next.g=0;Next.b=0;. It should turn the word NEXT red, but it doesn't, instead it makes it black.
Now, if at the beginning I'll create a white font (255,255,255) for Next actor, then the same script works flawlessly, making the word NEXT red on mouseover. Apparently, MyActor.r=255; does not turn the text red; it turns the text as red as it is possible to do within original parameters of given font. Is it so or am I missing something? Is it a bug or a feature? Is there a way around it?
Also, I wonder, if there is a way to have text with different colors in the same actor.
Thanks.