We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, i'm trying to make a game where we need to catch eggs when they fall down, but i have trouble figuring out how to make them come out at different times at different positions. this is what i have so far in terms with the eggs, please send help.
PImage egg;
float y;
void setup() {
size(500, 500);
egg = loadImage("RegularEgg.png");
}
void draw() {
background(0);
image(egg,0,y,50,50);
y+=1;
}
// image of egg
Answers
** this is the set up for the pan.**
Please format your code. Edit your post (gear on top right side of any of your posts), select your code and hit
ctrl+o
. Leave an empty line above and below your block of code. Details here: https://forum.processing.org/two/discussion/15473/readme-how-to-format-code-and-textRelated to your question, check this video:
For more information:
https://processing.org/tutorials/overview/
https://processing.org/tutorials/arrays/ <---- Browse toward the end
https://processing.org/tutorials/objects/
https://processing.org/tutorials/transform2d/ <---consider reading this one
Kf
http://Studio.ProcessingTogether.com/sp/pad/export/ro.9mzpXAdqbigsO
https://Forum.Processing.org/two/discussion/27857/eggs-disappearing-in-mid-air-as-they-are-going-down