Hi, I’m making a basic side scrolling platform game. I want a little death sound to play when the main sprite falls off a cliff and exceeds a certain coordinate, but I dont know any actionscript for attaching sound files. The sound file in the library is called “DeathNote”.
heres the working death script attached to the sprite:
if (this._y>450.0 && !dead){
dead = true;
trace (“you died!”);
gotoAndPlay(“death”, 1);
}
all it needs is the sound… Now what??
thanks!