Set text in script

Non-platform specific questions.

Set text in script

Postby Troodon » Tue Jan 30, 2007 4:28 pm

Hi,
How can I make the set text function to a text actor in script editor? Thanks
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 Game A Gogo » Tue Jan 30, 2007 11:47 pm

whit the string copy function "strcpy"
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Troodon » Wed Jan 31, 2007 2:59 pm

I'm not familiar with text actor variables. Can you explain it better?

Something like mytextactor.strcpy ="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 Murd-Machine[_] » Wed Jan 31, 2007 9:37 pm

Use it like this:

Code: Select all
strcpy(text,"lol");
User avatar
Murd-Machine[_]
 
Posts: 72
Joined: Fri Nov 04, 2005 7:04 pm
Location: Moscow-city
Score: 1 Give a positive score

Postby Game A Gogo » Wed Jan 31, 2007 11:30 pm

and it is also used to change variables whit text
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Troodon » Fri Feb 02, 2007 2:54 pm

Wow, thanks you too!
To change string variable, will I just make
stringvariable.strcpy(text,"lol");

Thanks! This opened new doors to my game developement! 8)
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 Game A Gogo » Sat Feb 03, 2007 1:16 am

no, to change a variable, you need to do this:

Code: Select all
strcpy(&stringvariable, "lol");

a limit of 255 character per string (Text apply also)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Troodon » Sat Feb 03, 2007 7:42 pm

Ok, thanks! :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 Game A Gogo » Sat Feb 03, 2007 11:42 pm

np ^^ (+ points +points :wink: ) :P
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Troodon » Mon Feb 05, 2007 3:39 pm

Ok, here it a new point, but I hope the scores will not became the most important thing in this forum. :wink:
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 Game A Gogo » Mon Feb 05, 2007 11:57 pm

hey, now my intentions are about: Games, Helping others, Art, Music, POINTS
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby willg101 » Tue Feb 06, 2007 12:27 am

The point system is a good idea, I just hope it doesn't become our focus, like tekdino said!
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Game A Gogo » Tue Feb 06, 2007 1:07 am

but, my goal will always be: BEING A CREATING GAME MACHINE
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest