I am making an attempt at a stickman scenario and when the stickman hits either end, it dies. Ive been trying to add a sound effect for when the sitckman reaches the edge but no sound will play.
Heres the code
/** * This sound plays when you die */ public void GameOver() { if(isAtEdge()) { Greenfoot.playSound("gameover.wav"); } }