Another strcpy question

Game Editor comments and discussion.

Another strcpy question

Postby Toasterman » Mon Jul 26, 2010 8:25 pm

I prefer using strcpy to useing the built in funtion "change text"; specially if there is alot of text.
However, I don't know how to do much of anything via strcpy to change the text- like change fonts.

So what I want to know is: Can you change the font useing strcpy?, Can you have parenthisese inside the text (like for a quote etc.)?, is there any better way to change font color besides making a new font? and any other functions that may be helpful like using \n to add a line (the only one I do know).

Thanks to any responce in advance + sorry for all the questions (this is my 7?) in the last few days alone!
"If there are no stupid questions, what kind of questions do stupid people ask? Do they get smart just in time to ask a question? -Scott Adams

Hey! I've got okayish internet now! Now I can try all those cool demos I've seen!
User avatar
Toasterman
 
Posts: 75
Joined: Thu Jul 22, 2010 4:22 am
Location: Drowning in Dial-Up Ocean
Score: 7 Give a positive score

Re: Another strcpy question

Postby DST » Mon Jul 26, 2010 8:32 pm

To change a font, use the 'set text' function (in the add events list).

To change a font color, make all your fonts white, and then adjust the rgb values of the actor.

b=0; g=0; //creates red text.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Another strcpy question

Postby Toasterman » Mon Jul 26, 2010 9:08 pm

thanks :) that will make changing color MUCH easier
"If there are no stupid questions, what kind of questions do stupid people ask? Do they get smart just in time to ask a question? -Scott Adams

Hey! I've got okayish internet now! Now I can try all those cool demos I've seen!
User avatar
Toasterman
 
Posts: 75
Joined: Thu Jul 22, 2010 4:22 am
Location: Drowning in Dial-Up Ocean
Score: 7 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron