typewriter.. text effect.

Blitz3D Forums/Blitz3D Beginners Area/typewriter.. text 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.

Well, I'm trying to code a type writer effect for my text. But I've ran into a small error:

parameter must be greater then 0

Once I succeed at printing all my text letter by letter on the screen if I add in a timer... I think I could create the type writer effect... What am I doing wrong guys?

Function cText(txt$,x#,y#)
	txtlen#=Len(txt$)
	
	x2#=x#
	
	For t = 0 To txtlen#
	
		txt2$=Mid(txt$,t,1)
		Text x2#,y#,txt2$,False,False
		x2#=x#+10
	
	Next
	
End Function