text help

hey guys! i got a text script for the game engine.but i want it to do something and i don’t know how to do it.anyway here is the code:

cont=GameLogic.getCurrentController()

owner= cont.getOwner()

owner.Text="write here"

ok.“write here” is the text you want to display on the screen.the problem is that it writes it like this:

“hey you,look at this text.this is not what i want.i want it another way.”

but…i want it like this:

“hey you,look at this text.
this is not what i want.
i want it another way.
please help me with this.”

see what i mean? is there anyway to do it?please help! :smiley:

The only way is with multiple text objects, one for each line. You could attach a single python script up to each Text object, and from there control what each one says to get the effect you want. Like,
object1.Text = “line1”
object2.Text = “line2”

and so on. I did something similar to this in zelda.

i wish it could be done with only one object.but thanx anyway…good idea! :smiley: