After pressing run, it loads up all of the console prinln methods but, it never loads the run window of the sketch. any help would be greatly appreciated. I have a large project due tuesday so i need to fix this fast!
What exactly happens when you try to run the sketch? Do you get a window at all? Is there a point where the console messages stop (that you can see in your sketch)? What is the last message you get? Is anything displayed? Do any of your constructors of your classes use Processing variables like width and height?
i looked and it is something wrong with this for loop
![]( for (float y=height/1.317073170731707; y<height/1.064039408866995; y-=25) {
float x=width/6.857142857142857;
pacdots.add(new Pacdot(x, y));
println(height/1.309090909090909);
})
can you tell me what it is? thanks
Answers
Maybe some code would help. Do you get an error message?
no
it is also using a lot of my cpu...
What exactly happens when you try to run the sketch? Do you get a window at all? Is there a point where the console messages stop (that you can see in your sketch)? What is the last message you get? Is anything displayed? Do any of your constructors of your classes use Processing variables like width and height?
can you download a file from the internet? I will screenshare it with obs and upload to a file sharing website and share the link.
size(400,400); rect(0,0,200,200); runs but my sketch does not
I will upload all of my code down below and you can run it.
main file
i looked and it is something wrong with this for loop ![]( for (float y=height/1.317073170731707; y<height/1.064039408866995; y-=25) { float x=width/6.857142857142857; pacdots.add(new Pacdot(x, y)); println(height/1.309090909090909); }) can you tell me what it is? thanks
Not without the pacdot class code.
here it is
There doesn't appear to be anything wrong with it. Does it do something different from what you expected?
no, it does the error that i talked about
What error? Does it cause the sketch not running?
yes
Line 30 is decreasing y. It might be that it never satisfies the condition. Add a line that prints out y
thanks I fixed it