Outputting text on the screen Created 17 years ago2007-04-17 11:11:04 UTC by ShinReiga ShinReiga

Created 17 years ago2007-04-17 11:11:04 UTC by ShinReiga ShinReiga

Posted 17 years ago2007-04-17 11:11:04 UTC Post #219348
i have created my mod...and am wondering if there is a way of outputting a specfic line text on the screen for a couple of seconds...?
its triggered by a button, so could i do an "on event" function or would it be done a different way?
cheers
Posted 17 years ago2007-04-18 18:36:21 UTC Post #219464
Make a "Game_Text" entity in your map. You enter the text you want to display in the properties of the entity.

Then use the I/O system to trigger this entity to 'Display' using a trigger or something else in your map, preferably so it corresponds with what the message is talking about.

If you want to use the "Scan Out" effect, rather than just Fade In/Out, I recommend using the following parameters:

Fade in Time 0.05
Fade out time 0.5
Scan time 0.05

If you want more than one line on the screen at once (using multiple game_text entities), you need to put the entities in different 'channels' (look in its properties) -- the maximum is 4.

You control where the text appears on the screen with the X and Y coordinates in the game_text properties. The default is -1, and this centers the text. If you want it somewhere else, put in a number between 0 and 1.

0.1 is the very top for the Y axis, or the very left for X

1.0 is the bottom, or right.

Hope that helped.
Posted 17 years ago2007-04-21 16:10:42 UTC Post #219694
by the way its worked with a little tweaking mate
worked a treat...cheers!
You must be logged in to post a response.