This is the code of the class where the error shows up :) expecting LPAREN,found '}'
THX FOR HELP
class cyclope
{
void display(){
stroke(0);
fill(#FCFFCE);
ellipseMode(CENTER);
ellipse(x,y,30,28);
fill(#4BDCFF);
ellipse(x,y-5,7,5);
beginShape ();
stroke(#F07272);
fill(255,0,0);
curveVertex(x-10,y+5);
curveVertex(x-10,y+5);
curveVertex(x-5,y+7);
curveVertex(x,y+10);
curveVertex(x+3,y+13);
curveVertex(x+10,y+5);
curveVertex(x+10,y+5);
endShape(CLOSE);
}
void movement()
{
if(touch==true)
{
if(ax<6)
{
y=y-8;
}
else if(ax>2&&ax<10)
{
y=y-7;
}
else if(ax>4&&ax<14)
{
y=y-6;
}
else if(ax>6&&ax<20)
{
y=y-5;
}
else if(ax==20)
{
y=y-4;
}
else if(ax>20&&ax<26)
{y=y-2;}
else if(ax==26)
{
touch=false;
ax=0;
}
if(ax<26)
{
ax++;
}}
else{
y=y+gravity;}
if(keyPressed)
{
if(key=='a')
{
x=x-3;
}
else if(key=='d')
{
x=x+3;
}
}
}
}
Here it shows up: exppected LPAREN, found '}'