Void error what is wrong?

please format code with </> button * homework policy * asking questions

int y=290;
int z=2;
PImage pista1;
PImage chico2;
int contador=0;
int x=0;
int y=0;
boolean clic=false
void setup(){
size(600,400);
pista1=loadImage(“pista1.jpg”);
chico2=loadImage(“chico2.jpg”);
}
void draw(){
pista1.resize(600,400);
background(pista1);
fill(255);
text(“Julen Pérez Arbe”,250,15);
fill(255,140,0);
ellipse(mouseX+115,y,30,30);
chico2.resize(150,235);
image(chico2,mouseX,165);
y=y+z;
if(y>380){
z=-2;
}
if(y<290){
z=+2;
}
fill(255);
text(contador,15,20);
if(clic){
contador=contador+2;
}
for(x=0;x<=600;x=x+10){
fill(255);
line(x,380,x,400);
}
}
void mousePressed(){
if(mouseX>450 && mouseX<550){
clic=!clic;
}
}
Sintax error - Error in “void”

Please post the code again

  • Before posting remember to hit ctrl-t for auto-format

  • Then post

  • Select the code and hit ctrl-e in the forum (or in the command bar </>)

missing ; semicolon after this line - found it

And how can i get a no background child photo to introduce?

I mean i find some jpg but none of them removes the grey and white squares background

Unclear what you mean

Ah, I think you have to save the image without background as a png (in a suitable program) and try to open this