I got the images to work here. Can I get some help on cleaning the hits up. It looks slopy, the laser doesn't show some of the time, the explosions only happen if you click in just the right area. I am not verry good at this, which i'm sure is apparent.
Still have no clue how to make a hit counter work. Any other thoughts.
PFont fontA;
float bombDiameter = 20;
boolean shoot = false;
PImage galaxy;
PImage bomb;
PImage explode;
int hit = 0;
int miss = 0;
int randx()
{
return int(random(800));
}
int[] bombXCoords = {
randx(), randx(), randx(), randx(), randx()
}; // X cood. values for bomb array are random
int[] bombYCoords = {
0, 0, 0, 0, 0
}; // All bombs have a 0 y value to start.
I want to make the red dots in this program images. I want to make them a bomb image as they fall, and a explosion when hit with the laser. I can't figure it out, so I have the base in here with the array as ellipse. TIA
Also, what would be a simple way to add a hit counter?
PFont fontA;
float bombDiameter = 8;
boolean shoot = false;
PImage galaxy;
int hit = 0;
int miss = 0;
int randx()
{
return int(random(800));
}
int[] bombXCoords = { randx(), randx(), randx(), randx(), randx() }; // X cood. values for bomb array are random
int[] bombYCoords = { 0, 0, 0, 0, 0 }; // All bombs have a 0 y value to start.
Trying to make a "clock", and have to use a class with 2 methods. I have it all the way to where I am trying to get the objects to move with the clock. I cannot seem to get it figured out. can someone help me. Keep in mind this is for a into programing class.
I need help figuring out how to move a shape created by an array. I am really new to this, and it is for a class. To be honest, the teacher does not explain anything very well, plus it's an online class. I have to create 3 "constelations" and have them move across the sky. I have a good idea on how to create the arrays them selves, but can't figure out houw to make them move well. I need them to go from a to b on a path and revert to a after they reach point b.