Hello people.
Lately I have been trying to make a pacman-like game in flash, which mainly consist of a character walking through a maze collecting items. I would like to hear a bleeping sound whenever he touches one but I have no idea how to script this.
Can anyone help me out?
This is the script regarding my items (pills):
for (a=1; a<=11; a++) {
if (pacman.hitTest(this["pil"+a])) {
if (raak == false) {
this["pil"+a]._x = 10000;
score = score+100;
pillen = pillen-1;
Thanks in advance
Edit: Forgot to mention I'm using flash MX 2004 and flash 8 (Don't think there's a difference in scripting? Not sure.).