So I have this game which I have put hit tests in so that my counters will increase but they are not working. I have highlighted the parts of the code that relate to this.
//images
PImage obamaPic;
PImage romneyPic;
PImage boothPic;
PImage backdrop;
//ballots
Ballot[] obama = new Ballot[12];
Ballot[] romney= new Ballot [8];
Booth booth;
//counters
int i;
int obamacount;
boolean obamaAlreadyHit;
int dem;
int gop;
void setup(){
size(650,700);
obamaPic = loadImage("DEM.png");
romneyPic = loadImage("GOP.png");
backdrop = loadImage("wall2.png");
boothPic = loadImage("booth.png");
dem=0;
gop=0;
for (int i=0;i<obama.length;i++){
obama[i] = new Ballot(obamaPic,random(650),-33);
}
for (int i=0;i<romney.length;i++){
romney[i] = new Ballot(romneyPic,random(650),-33 );
}
booth = new Booth(boothPic,325,375);
}
void draw(){
if(obamaAlreadyHit == true){ // CHECK IF OBAMA WAS HIT
Alright i have my file in my data folder and the video isn't showing up. here is the code. I have multiple videos but i am currently only trying to get one to work.