writing text, letter by letter

Blitz3D Forums/Blitz3D Beginners Area/writing text, letter by letter

Or indeed if you want to be clever...

This is a tidy way of doing it so you don't need to create loads of loops, just create a function to pass the x,y and text into it, then just use type_text instead of text.

Graphics 640,480
type_text(0,10,"GREETINGS ADVENTURER, WHAT WOULD YOU LIKE TO DO ?" )
Type_text(50,100,"Anything?")
type_text(0,200,"This is a much better way of doing it!")
End

Function type_text(x,y,t$)
For n=1 To Len(t)
Text x,y,Left(t,n)
Delay 100
Next
End Function