playing notes/drum loops script/missing somthing?

Subscribe to playing notes/drum loops script/missing somthing? 7 posts

avatar for saberlegend saberlegend 21 posts
Flag Post

Basicly.
i made a virtual piano game check it out on my user name.
Now, problem is, im making a new version where theres drum loops.
Sorted out the drum loops, theyre fine, you click them and they loop on and on and on. Untill you stop them.
Problem is. when i turn them on , and try to play the piano with it, the drum loop turns off!
Anyone know how to fix this?
Any help apreciated.
Thanks.
,
Sincerely, Saberlegend

 
avatar for saberlegend saberlegend 21 posts
Flag Post

come on arcane, you said to post here and it hasnt worked!

 
avatar for Kalinium Kalinium 764 posts
Flag Post

You’re probably making one sound object play multiple sounds at once – you need to make a sound object for each sound you want playing at the same time, I think.

 
avatar for saberlegend saberlegend 21 posts
Flag Post

really?
well, theres the keybored which is one movieclip with lots of other movieclips inside it.

and thenn the drum looops are all seperate,..

 
avatar for Kalinium Kalinium 764 posts
Flag Post

What code are you using to play the sounds?

 
avatar for saberlegend saberlegend 21 posts
Flag Post

well. i learnt from a tutorial .
but the script is….
on (press) {
goKey(60);
}
and also this
stop();

function goKey(num){
stopAllSounds();
gotoAndPlay(“n” + num);
}
because on a timeline there frames have the sound in them..
its like one long timeline with all the notes in them and stop(); on each note.

and i dunno why it doesnt work

 
avatar for saberlegend saberlegend 21 posts
Flag Post

HOLD UP DJJJ!!!!
stop that right now…

ive put stop all sounds.
NO way..
no wonder it did that lol.
thanks anyways kalinium lol .
hahahahah my mate was going into every detail but couldnt find it.
and i just found it i put the place the tutorial says into it and forgot to take it out .
DUHH***
lol
thanks!