Hey guys, my Snakes are trying to eat my Wombat, that is intentional, unfortunately they are eating each other too - does anyone know how to stop this?
Here is the code for my actor called Snake....
move(5);
if (isAtEdge())
{turn(150);}
if (Greenfoot.getRandomNumber(100)<10)
{turn(15);}
Actor wombat;
wombat = getOneObjectAtOffset(0, 0, Wombat.class);
if (wombat != null)
{ World world;
world = getWorld();
world.removeObject(wombat);
Greenfoot.playSound("Dead.wav");

