
11-16-2001, 04:58 AM
|
|
Registered User
|
 |
Join Date: Mar 2001
Posts: 825
|
|
|
~AlphaFlame~
Basically, just use a for loop, keydown, and playsound... here's one I made a bit ago (with a little not-so-subtle hint from Kaimetsu for a change in it)... it's fairly optimized...
TO CHANGE IT: just change the line "play ocarina#v"... change only the ocarina part to whatever instrument you want. Make sure the .wavs for that instrument end with a number from 1-8 though... Tada.
if (playertouchsme){
toweapons Ocarina;
destroy;
}
if (weaponfired){
this.mode=1-this.mode;
disabledefmovement;
timeout=.05;
}
if (timeout){
if (this.mode=1){
for (i=0;i<4;i++){
if (keydown(i))play ocarina#v(i+1+keydown(5)*4).wav;
}
if (keydown(6)){
this.mode=0;
enabledefmovement;
}
timeout=.05;
} else {enabledefmovement;}
} |
__________________
If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
|
|
|
|