Start Text

Avatar
portal2companioncube
108 Posts
Posted Apr 24, 2012
I'm putting in a story with my map. Before you start playing it, I want it to just display text on the screen telling the story, like a prologue. But, I don't want you to be able to walk around or be able to see anything. Also, it would be nice for it to say something like "Press any key to start" after telling you the story to take you to the beginning of the map. Does anyone know how to do this?
Advertisement
Registered users don’t see ads! Register now!
Avatar
Brainstatic
219 Posts
Posted Apr 24, 2012
Replied 22 minutes later
Try a game_text. I think that may only support one line of text by default, but if that's the case, you can try multiple text channels for up to four lines.

As for not being able to see, use an env_fade, triggered by a logic_auto, with its fade color set to black. Make sure to check the "fade from" and "stay out flags."

And then not being able to move, use two game_uis. The first one should be activated immediately by a logic_auto, and have the "freeze player" flag set on. Once the prologue text has finished displaying, simultaneously deactivate that game_ui and activate the second one, which should have all of its flags on except for "hide weapon." In addition, set outputs from that second game_ui so that on PressedMoveLeft, PressedMoveRight, PressedAttack, etc., it deactivates itself.

Avatar
ChickenMobile
2,460 Posts
Posted Apr 24, 2012
Replied 3 hours later
^ What they said ^

At the moment there is only the scanning effect or the fade in/out effect available. Scrolling (or perhaps they call it credits) do not work.

Game texts can support new lines by adding a \n inside your game text. I heard that in-game this doesn't actually work as compile reverses it. Could be wrong though...

Avatar
Brainstone
401 Posts
Posted Apr 25, 2012
Replied 18 hours later
env_instructor_hint came new with Portal 2, not many people know it and it has a thausend times more options than game_text.
Avatar
p0rtalplayer
1,366 Posts
Posted Apr 25, 2012
Replied 26 minutes later

Brainstone wrote:
env_instructor_hint came new with Portal 2, not many people know it and it has a thausend times more options than game_text.

while this does have it's uses, some people like me might have gameinstructor_enable set to 0 - I have it turned off because otherwise in every custom map it tries to teach me how to pick up cubes and shoot portals, which gets annoying.

Just something to keep in mind.

Avatar
iWork925
1,080 Posts
Posted Apr 26, 2012
Replied 7 hours later

p0rtalplayer wrote:
Brainstone wrote:

env_instructor_hint came new with Portal 2, not many people know it and it has a thausend times more options than game_text.

while this does have it's uses, some people like me might have gameinstructor_enable set to 0 - I have it turned off because otherwise in every custom map it tries to teach me how to pick up cubes and shoot portals, which gets annoying.

Just something to keep in mind.

I also have this turned off. Please dont put any critical info in it. Put it on the download page.

Advertisement
Registered users don’t see ads! Register now!
Avatar
Brainstone
401 Posts
Posted Apr 26, 2012
Replied 9 hours later
Ok, I will think of that. But when I played custom maps, it has never shown me the introduction stuff. Is that different on certain systems?