? H-E-L-L-O ?

Talk about making games.

? H-E-L-L-O ?

Postby ingsan » Wed Apr 06, 2005 5:29 am

I have a textActor called mytext. Instead of using TextInput (it's when it's there that you don't want it :oops: ), I want to write H-E-L-L-O by just clicking on my H-E-L-O buttons ( Four different actors ).

Any idea about the code :idea: Will mytext actor be a TextInput actor or not ? I'll ponder on it :idea:
User avatar
ingsan
 
Posts: 580
Joined: Mon Nov 17, 2003 4:02 pm
Location: Maurician LADY in FRANCE
Score: 6 Give a positive score

Postby Just4Fun » Sat Apr 09, 2005 2:36 am

Hi Ingsan,
If I understand you correctly, you could do the following:
1. Create two Actors (mytext) and (button1)
2. Set up your text in mytext Actor (use space bar and make 5 or 6 spaces, also remember to set up your fonts)
3. In button1, use Mouse Down event -->script editor and add the following code:
strcpy(myactor.text,"Hello"); //copies Hello into myactor text on mouse down event.

* Don't use text input unless you want the user to type in some text.
HTHs....
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest