How change the text of actor?

Game Editor comments and discussion.

How change the text of actor?

Postby futuro » Fri Jul 03, 2009 7:07 pm

When create an actor as text, how change the text?

I want create one actor what text: "please continue" and in a timer (750) actor text: "push start"

who can help me?
alguien que hable mi idioma ÑñÑñÑñ
User avatar
futuro
 
Posts: 37
Joined: Mon Apr 13, 2009 1:22 pm
Score: 0 Give a positive score

Re: How change the text of actor?

Postby skydereign » Fri Jul 03, 2009 8:35 pm

Have a text actor, that says the "please continue". Then on a single timer event, put this in script editor.
Code: Select all
strcpy(text, "please continue");

That should work.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How change the text of actor?

Postby DST » Fri Jul 03, 2009 10:14 pm

and to set it from a different actor, just insert the name before text.

as in

strcpy(actorname.text, "blahblah");
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: How change the text of actor?

Postby futuro » Sat Jul 04, 2009 7:09 am

ok, thanks, yours scored go to infinite... :D :)
alguien que hable mi idioma ÑñÑñÑñ
User avatar
futuro
 
Posts: 37
Joined: Mon Apr 13, 2009 1:22 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest