Hi, i am trying to make a car game where you can pick up stuff. Why you pick up an item i want it to sound, and it dose. But the problem for me is, when i put an other sound on the car, you will only hear the car, as long as you are driving. When i don’t press my “UP” key and the car only glide in to the item, i can hear it. But not both.
onClipEvent (enterFrame){
if(_root.car1.hitTest(this)){
var coin:Sound = new Sound();
coin.attachSound("COIN");
coin.start();
_root.score++;
unloadMovie(this)
}
}
That’s the script i use on the coin.
onClipEvent(enterFrame){
if(Key.isDown(Key.UP)){
var UP:Sound = new Sound();
UP.attachSound("up");
UP.start();
}
if(Key.isDown(Key.DOWN)){
var DOWN:Sound = new Sound();
DOWN.attachSound("down");
DOWN.start();
}
}
and that’s the script i use on the car.
I think i have something to do with the script i put on the car, when i press my up key flash plays alot of that sound and not just 1 as i want it to.
Thx