Hey,
i made an Ammo Limit in my Zombiegame. Now i want to Show a new class on the map with the Image "RELOAD". When the ammo is == 0 it Shows this class, but directly it changes also the world to the gameover world?! But why?! In the same Actorclass i made a addObject shot, and it works with the same code as the Image, but there it doesn´t changes the world.can you help me???
Thank you
if (Greenfoot.isKeyDown("r") && (firecounter == 0) && (ammocounter > 0))
{
Shoot2 rObj = new Shoot2();
getWorld().addObject( rObj, getX(), getY() );
rObj.setRotation(getRotation());
firecounter = 5;
ammocounter--;
}
if(ammocounter < 1)
{
Reload2 reload2 = new Reload2();
getWorld().addObject(reload2, 700, 80);
}
