Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 30/11/2003 13:44:37

Title: Displaying text
Post by: on Sun 30/11/2003 13:44:37
Hey, is there a way to display text in the form of a title? Set the size etc? Or do you have to use a graphic, and how do you time events?

Ie "when timer = 1 second, then display "title name" or whatever?

I'm probably being blind, but i've looked thru the manual and can only find info on interactions.

I need this for the introduction sequence.
Title: Re:Displaying text
Post by: Scorpiorus on Sun 30/11/2003 13:59:03
When importing a ttf font you can set it's size, but if it's just a one-screen-title I'd suggest to make it an image instead. Add an object (number 0 for example), set it a sprite and make it initially disabled.

Next, on player enters room (after fadein) interaction:

StartCutscene(4);

Wait(40); // wait 40 game loops (about a second)
ObjectOn (0);

EndCutscene();

NewRoom(....) //load new room


Start/EndCutscene is in order for the player to be able to skip an intro.

~Cheers