We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Script looks like the following, but "other" and "stuff" appear at the same time after the delay. I want them to have delay between each other and I also want to start "void stuff" only from "void other", so what should I do?
PFont allfont;
void setup() {
size(1280,720);
allfont = createFont("8bitoperator_jve.ttf",100);
textFont(allfont);
textAlign(CENTER,CENTER);
other();
}
void other() {
text("other",width/2,height/2);
stuff();
}
void stuff() {
delay(1000);
text("stuff",width/2 + 250,height/2);
}
Answers
Maybe this helps? https://forum.processing.org/two/discussion/8084/how-do-i-display-a-message-for-a-few-seconds
Kf
Using millis: second text not appearing. what's with voids not accepting delays and millis?
you have no draw() loop which is probably why millis isn't working.
screen gets updated only once at the end of draw not throughout
use draw and millis
Thanks ^.^