Per Character Text Animation

I’m trying to make a typewriter text effect with each letter in a word appearing one by one. I’m still learning Python and your example really helped! Here’s how I adapted it to make it work

originalText = original.text.get()
output = " "
ptr = 0
slowFac = 4
for i in range(frame/slowFac, len(originalText)+1):
	if frame/slowFac < len(originalText):
		ptr=frame/slowFac
	else:
		ptr=len(originalText)
ret = originalText[0:ptr]

Peek 2020-04-04 20-49

It disappears once the text is typed but it’s a start!

1 Like