Good evening
In my game i have the avatar eating the burgers, but i want a apple which is the wombat treat to spawn once 10 burgers has been eaten. I did some of the code here, but it seems that it is not right because the apple does not spawn at all. Could someone please help me out with figuring out my problem.
Thank you in advance
Scarlett
public void Wombat_Treat()
{
int x;
int y;
if(Burger==0) {
Wombat_Treat WB1= new Wombat_Treat();
addObject(WB1, Greenfoot.getRandomNumber(700), Greenfoot.getRandomNumber(700));
x = (Greenfoot.getRandomNumber(700));
y = (Greenfoot.getRandomNumber(700));
addObject(WB1, x, y);
}
