When wombat hits world edge I want him too:
-turn
-play a sound
When he hits the edge he turns multiple times and plays multiple sounds and sometimes get stuck. Is there a way to make him turn ONCE and play the sounds ONCE, maybe with a wait-command or something? Thanks for help.
Current Code:
if ( atWorldEdge() )
{
turn(180);
Greenfoot.playSound("2525.wav");
}