Typing Effect

BlitzMax Forums/BlitzMax Beginners Area/Typing Effect

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.

Is this what you wanted?

Graphics(640,480)

Function TeleType(text:String,x:Int,y:Int)
	For Local i:Int=1 To Len(text)
		DrawText(Left(text,i),x,y)
		Delay(60)
		Flip
	Next
EndFunction

TeleType("This is a test",0,0)
Teletype("Please press Any Key to Exit.",0,12)

Teletype("Oh, by the way, the cake is a lie :)",0,48)

WaitKey()
End