How to simulate 'typing' text?
in
Programming Questions
•
1 month ago
I've tried this. I'm aiming for a function that types text individually with a .5 second wait time.
This doesn't work at all, and merely shows 'Hello' as a full character after the loop ENDS. :/
-
void type(String str){println("\tTYPING");String typed;typed = "";for(int i = 0;i<str.length();i++){delay(500);size(displayWidth, displayHeight, P2D);background(0);Character character = str.charAt(i);typed+=character;text(typed,40,40);}}type("Hello");
1