(URGENT!!!) Hi! So I am making what is basically supposed to be a super basic hungry shark game (I call it Shark Attack... hehe). It's for my programming class and it's due tomorrow, but I'm having a tad bit of trouble spawning the fishes and rocket (yes, a rocket, i couldn't be bothered to find and resize a bird image because I'm lazy) in a timely manner.
What I basically did is create a counter, and every time the shark moves 1, the counter has one added to it, and once the counter reaches certain numbers, certain actors are released. The program has no syntax errors, and it should theoretically work, but none of the actors will spawn except the shark, which spawns right at the beginning anyway.
Here is the code for the counter:
public void addToCounter()
{
int move = 0;
int counter = 0;
if(move == move + 1)
{
counter = counter + 1;
}
}
And this is what I have for the spawn program for the other actors:
if(counter == 15)
{
spawn_theFish1();
}
if(counter == 20)
{
spawn_theFish2();
}
if(counter == 50)
{
spawn_theRocket();
}
Any help/advice you guys could give me before tomorrow would really, really help! It's probably something obvious, I'm no good at programming haha.
