infant17 wrote...
im still getting error that says illegal start type on line   if(wormEnergy=<0).......
  
            // with the fields
private int moveCount = 0;
// a move method could be
private void move()
{
    move(1);  // or a 'setLocation' statement
    moveCount++;
    if (moveCount == 20)
    {
        moveCount = 0;
        // do whatever needs done
    }
}wormsEaten--;
if (wormsEaten == 0)
{
    getWorld().removeObject(this);
}wormEnergy = wormsEaten*20;
if (wormsEaten < 10 && canSee(Worm.class))