Okay so I have another question… What does the loadStrings function do exactly? I ask this because I’m loading the text file into the levelProgress String[], but it doesn’t really get the value. But on the other hand, it looks like it does…?
When I print out the value of the first variable in the array after it got loaded, it prints the right value, but once I try to use it in an if statement Processing doesn’t recognize it or something like that. Here’s the if statement:
if(levelProgress[0] == "level0Finished"){
println("Works!");
}else{
println("Ummm...");
}
Idk wether seing this helps… Here the part where I load the file into the array again:
void setup(){
levelProgress = loadStrings("C:\\Users\\name\\Documents\\Processing\\Space_Invaders\\levelProgress.txt");
}