We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi im in dire straights can anyone tell me how i could move a circle that is going across the screen to move diagonally upwards and then downwards once its reached a certain point in the screen this is for an assignment i have for college i really need help. heres the code i have so far its just a mish mash of code ive gotten from tutorials etc so forgive me if its messy and irrelevant. PLEASE HELP thank you
Answers
int moveY, moveX;
void setup (){ moveY = 0; moveX = 0; size (600, 600);
}
void draw (){ background (252); fill (300,0,0); rect(200,15,150,550); fill (0,10,200); rect(350,15,150,550); fill (0,630,10); ellipse (moveX,300,50,50); moveY++; moveX++; if (moveY >=height) { moveY=0; if (moveX >= width) { moveX=0; if (moveX >200,
}
so all im getting is the circle moving across...
https://forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-text