Shooting

i'm using images for bullets and my ship has to shoot aliens when i pressed space bar. how can i make it as simple as i can ?

i did something like that but this is one time bullet. It has to continuously shoot.

  noCursor();
  background(0);

  image(s1, mouseX,650);
  image(p1, 20, 30);

  if (keyPressed) {
    if (keyPressed == true && key ==' ') {
      image(n1, mouseX, bo);
    }
  }
  bo = bo -10;
}

Answers

Sign In or Register to comment.