Second answer

How would i make this code show the second answer?

from bge import logic 
cont = logic.getCurrentController()
own = cont.owner
own.text = "I feel good."
own.text2 = "It cost thirty dollars."


Depends on what you mean by “show”.

If you just want to print the text, call pint(own.text). If you want to display text in game, with the font object, you have to set the relevant property.

Where would put print(own.text)?

The logic based cursor I gave you,

note what the property “String” was doing…

Attachments

Cursor.blend (444 KB)

After the definition.

I think he wants the information to be on the screen in the engine,

It would be nice if we didn’t have to guess, and that was made clear in the beginning.

Hey, coding can be like a snowball sitting on a little plateau on the side of a mountain , all it needs is the right push…

and LOOK out below!

How would you make two lines of text show up one after the other in the blender game engine as you press the same keyboard key?

can you bring the console into the game engine?

Is this what you’re trying to achieve?
cycle_text.blend (434 KB)

Press space to cycle through the messages.

Have a look at this blend.
Press w in the blender game engine.To see what i did so far.http://www.pasteall.org/blend/24309