ID:178227
 
How would I make a title screen that makes you press space bar to continue?
You can create a title screen by following the directions at http://www.deadron.com/byond/ByondBwicki.dmb?TitleScreen.

Trapping the spacebar would require the game to be in macro mode, and that usually isn't desirable. I'll show you how and give you an alternative that I use.

To macro the spacebar:
Create a script file (with a .dms extension) and type this into it

macro
Space return "Start"

Then make a verb in your code file called Start. It should make sure the usr is on the title screen and do nothing if they are not.

To set your program in macro mode, place this in one of your code files:

client
command_text = ".alt"

an alternative:
You can make clickable buttons on the title screen. Just define the turf or obj and override the Click() proc for it. Place the button on the title screen and you're done.

turf
start_button
icon = 'start.dmi'

Click()
// your start code goes here

I also like to make a verb accessible to anyone in sight of the button, so players used to the BYOND verb interface can use it also.

turf
start_button
icon = 'start.dmi'
Click()
Start() // call the Start() verb defined below
verb
Start()
set src in view() // accessible to all in view
// put your starting code here