Hello @Ethanation ,
The problem is the noLoop(). The code does not get updated to place the strings.
So the ENTER key should take you to another “page” and then just keep updating that “page” as you type things
Here is part of the code working:
//sets up all of the inputs
String x1 = "";
//sets up indents
int indent1 = 10;
int indent2 = 150;
int type1 = 0;
void setup() {
size(600, 600);
background(255);
}
void draw() {
textSize(20);
fill(0);
if (type1 == 1) {
stroke(255);
fill(255);
rect(0, 0, 600, 600);
fill(0);
text("X =" + x1, indent2, 200);
} else {
text("Hello, when we get there please enter each number"+"\n"+"in its coresponding space.", indent1, 160);
text("If you dont have a number for the space, leave it blank.", indent1, 270);
text("Press enter to accept the number"+"\n"+"so, please press enter now.", indent1, 350);
}
}
//key inputs
void keyPressed() {
if (key == ENTER) {
type1 = 1;
} else if (key == BACKSPACE) {
x1 = x1.substring(0, max(0, x1.length()-1));
} else {
x1 = x1 + key;
//DEBUG
//println(x1);
}
}
Hope it helps!