Temporary Messages

Hey everyone, it’s me again, (audience groans inwardly) and I have a question! (Spectators glance at each other with a “go figure” look on their faces).

I want to put something in my game that will briefly display a test message to the player, then hide it again. Is this possible? It seems like it should be pretty simple…

yep, it is not complicated. i hope you’re familar with using bitmap fonts in blender (if not, just tell). all you have to do then is to put the text plane right in front of the camera (be sure that it does not take part in collision detection) and parent it to the camera.

to display your message you just need to set the property “Text” of this object to the value it should display. if you want the message to disapear, set the “Text” property to an empty string.

when you use a windows system, i have a compiled version of ftblender, which converts ttf to bitmap fonts. when you created such a bitmap from your font, add a plane to your scene (make it quadric) and apply the bitmap to your plane (not through the material, but via uv-coordinates, face mode and image window). move the uv coordinates that they fit the @ in that bitmap and select “Text” in the face buttons.

croban

Thanks, how do I make it appear for a short time, then disappear automatically?

where are these properties of elements documented?

Wow, it’s an ancient thread from the days when I was a stupid n00b who apologized every time I asked a question!

You can add properties by clicking the “Add Property” button in the game buttons window (the logic bricks window).

On a side note, years later I have mastered this system and am actually using it for the first time:
http://img16.echo.cx/img16/3863/talk8rh.jpg