Play a sound whenever the crab turns more than 18 degrees.
I know how to add a sound, but how do I make the sound from a turn? I can not recall.
turn(Greenfoot.getRandomNumber(91)-45);
int turningAmount = Greenfoot.getRandomNumber(91)-45;
turn(turnAmount);
if (turnAmount>18 || turnAmount<-18)
{
//play a sound
}