Question about text
juliaa
Member Posts: 7
I just downloaded gamesalad an hour or so ago,It is so easy to use even with the well put together outdated tutorials.I made a background,I made an actor,I made a text box.I even figured out how to make text appear when I left click.
So how do I make the first text disappear and another take its place?
When I add a second display text behaviour it just show both text at once.
Am sorry I suck at math I have no programming experience and this is my first game.
So how do I make the first text disappear and another take its place?
When I add a second display text behaviour it just show both text at once.
Am sorry I suck at math I have no programming experience and this is my first game.
Comments
You can make an attribute that changes in value and then that value tells which text to display in your text box.
Eg. click on this box makes your attribute add '1' each click...the number of the attribute then determine which text to show...
if attribute = 1 then display this text
if attribute = 2 then display this text
Or put the text values into a table and using the a changing attribute select the corresponding table value and display the text from that table cell.
Ty for your response
I would probably do what you want with an attribute first as they are more important to learn in the beginning - understand their power and use before moving onto tables.
But the table way is so easy I already did it.Thank you so much for your help.
Can you point me in the direction of how to use attributes? I was so tired last night I just realize my text where displaying random.That's not what i wanted I wanted them to display in a specific order.which behaviour can I use?
Make a table with 1 column(with "text")
and "x" rows. In every row you put in you text.
Ex. Row 1- Hi, How are you
Row 2- Fine thank you.
Row 3- Great. Have a nice day.
Then make a game.attribute(integer) and call it "WhichRow?")
Now you make a rule in the box that should display the next.
When touch is pressed
-Change attribute game.whichrow? To game.whichrow?+1
And then you drag in the display text behavior(not in the rule) and press the expression editer. Then go into fuctions and press "TableCellValue"
Then it should stand tablecellvalue(table,row,columnk)
Replace the table with you table
Replace row with game.whichcolumn?
Replace column with 1
There you have it
//Fajlajp
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Fajlajp you are a super genius thank you so much.It worked.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Thank you FryingBaconStudios.I think I get the basic concept.it just takes practice and patients.