Hi I just wanted to know why this won't work
public void act()
{
// Add your action code here.
if (isTouching(Player.class||Spider.class)) {
setLocation(Greenfoot.getRandomNumber(600),Greenfoot.getRandomNumber(400));
}
else {
GreenfootImage image = getImage();
image.scale(80, 30);
setImage(image);
}
