Creating toggling keyboard pause button

Blitz3D Forums/Blitz3D Programming/Creating toggling keyboard pause button

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

what i used in a program i wrote

	If KeyHit(25) ; pause P
		CopyRect 0, 0, screenWidth, screenHeight, 0, 0, FrontBuffer(), BackBuffer()
		SetFont fntTimes70B : Color 0, 0, 0
		Text (screenWidth - 4) / 2, 200, "P A U S E D", True, False
		Color 255, 255, 255 : Text (screenWidth) / 2, 196, "P A U S E D", True, False
		Flip
		While Not KeyHit(25)
		Wend
		FlushKeys
		SetFont fntTimes20B
	EndIf