
12-09-2001, 12:08 PM
|
|
Registered User
|
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
|
|
Quote:
Originally posted by Knight_Vincent
Ok,
But im not useing a gani... I haved tryed,
if (keydown(4)&&playerbombs==0)
setplayerprop #c, ...Recharging...;
timeout=15;
if (timeout)
playerbombs=99;
setplayerprop #c, ...Recharged...;
if (keydown(4)&&playerbombs<0)
function shoot() {
play effect1.wav;
shots[bllt]=ship[0]+addx;
shots[bllt+1]=ship[1]+addy;
shots[bllt+2]=addx;
shots[bllt+3]=addy;
if (bllt<maxshots*4) {bllt+=4}else{ bllt=0;
}
}
|
Ok, try this:
NPC Code:
if(playerbombs==0){
timeout=15;
}
if (keydown(4)&&playerbombs==0){
setplayerprop #c, ...Recharging...;
}
if (timeout){
playerbombs=99;
setplayerprop #c, ...Recharged...;
}
if (keydown(4)&&playerbombs>0){
function shoot() {
play effect1.wav;
shots[bllt]=ship[0]+addx;
shots[bllt+1]=ship[1]+addy;
shots[bllt+2]=addx;
shots[bllt+3]=addy;
if (bllt<maxshots*4) {bllt+=4}else{ bllt=0;
}
}
There, that should work |
__________________
~Draemus Windblade
Just over 90% of all messages have no point or meaning.
"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"
Luminar
|
|
|
|