Cant find anything named: "objectname"" error
in
Programming Questions
•
4 months ago
I'm trying to make a moving square but when i declare my object in void setup() and then try to call a method in void draw() processing tells me "cant find anything named vierkant. (vierkant means square in dutch, thought it would be good name for the object)
this is the important code:
constructor:
public Groeivierkant(int tempbreedte, int tempx, int tempy)
{
breedte1=tempbreedte;
breedte=tempbreedte;
x=tempx;
y=tempy;
}
main code:
void setup()
{
size(640, 480, P2D);
background(0);
Groeivierkant vierkant = new Groeivierkant(200, 15, 50);
}
void draw()
{
make();
vierkant.teken();
delay(100);
}
1