Processing Forum
PImage img;
PImage img1;
PImage img2;
PImage img3;
PImage img4;
//PImage img5;
int temp;
int temp1;
void setup()
{
size(500,500);
background(220);
img = loadImage("harryWand2.gif");
img1 = loadImage("avada.jpg");
img2 = loadImage("voldemort.gif");
img3 = loadImage("expelliarmus.gif");
img4 = loadImage("bird.gif");
}
getO()
{
if (keyPressed)
{
if (key == 'o')
{
image(img4, temp - 170, temp1 - 147);
temp = mouseX;
temp1 = mouseY;
delay(1000);
temp--;
temp1--;
}
}
}