0

enter image description here

I have attached the snippet of an excerpt from my Scratch project, Shoot 'Em Zombies. It is basically a simple zombies shooting game. I want to set "Main" to be the background music and switch backdrop to "stage2_cropped" after the two zombies in Level 1 are killed. (hence the "if zombies1=2) But both won't work. The background music is not played and the backdrop won't switch after I kill both zombies.

I am not sure what is the problem here, any ideas?

Thanks in advance!

1

Place the play sound piece before the forever loop!

  • OMG! Thanks! It works for me! One more question. What if I want the sound to play over and over until the game ends? If I can't nest it inside the forever loop then what can I do instead? – Nalongsak Luangkhot Feb 15 '15 at 4:57
  • Use a "When Green Flag Clicked" button and place the forever block with the music inside it! – Richard Qiu Feb 15 '15 at 18:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .