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
1 2 3 4 5 6 7 8 9 10 | /** * This sound plays when you die */ public void GameOver() { if(isAtEdge()) { Greenfoot.playSound("gameover.wav"); } } |
