how can you put an intorduction in the game

i want an intro story before the game starts

It can be done in a number of ways. Here’s one: remove the status line, clear the screen, show the intro text, prompt for a key, clear the screen, show the text again, add the status line back, and begin the game.

gameMain: GameMainDef
	showIntro()
	{
		statuslineBanner.removeBanner();
		cls();
		showText();
		"<p>";
		"<i>Press any key to continue.</i>";
		inputManager.getKey(nil,nil);
		cls();
		showText();
		"<p>";
		statusLine.initBannerWindow(statuslineBanner);
		inherited();
	}

	showText()
	{
		"Welcome to ilovemyhedgehog's IF adventure! ";
	}
;

I’ve heard from a number of players that they don’t read anything before the bold room name. The method above makes sure that the intro text is the only thing on the screen at first; after the player reads it, the game begins as normal. I print the text a second time to get it above the room name without any intervening prompt.

so do you write the text where it says show text?

Yes. :slight_smile:

thanks i will try this!

it dosnt work