okay so i have this code and im trying to draw text() in setup() right before i load and play a sound file. the problem is, the text does not draw until after the sound has loaded. if the sound code is commented out, the text loads fine.
void setup(){
size(1100,800);
background(20,20,20);
noStroke();
//Tri-force
fill(255,255,0);
triangle(420, 400, 532, 180, 644, 400);
triangle(308, 620, 420, 400, 532, 620);
triangle(532, 620, 644, 400, 756, 620);
//Loading
fill(255,255,255,trans-80);
circle(1050,750,20);
fill(255,255,255,trans-60);
circle(1000,750,20);
fill(255,255,255,trans-40);
circle(950,750,20);
text("This is a loading screen!", 50, 20); // this is the text
file = new SoundFile(this,"PrincessZelda.mp3");
file.play();
//Volume meter(0-1)
file.amp(.5);
}
im not sure what im doing wrong or why the text refuses to draw
this is probably in the wrong category but i didn’t know where else to put it. sorry