
02-07-2002, 04:04 AM
|
|
Registered User
|
Join Date: Aug 2001
Posts: 378
|
|
|
-=Josey=-
Lol. I checked this post before I went so I'll help you out a bit. ;P
Ok I'm considering that you've already made the first part of it so use something like:
if (weaponfired){
timeout=.05;
}
if (timeout){
this.x+=.5;
doFire();
}
function doFire(){
if (!this.x=0){
putexplosion <yourthinghere>,this.x,playery;
timeout=.05;
} else {
timeout=0;
this.x=playerx+1;
}
I'd use something similar to that. Considering I'm tired and just wrote this it may not be right. So just mess around with it. Using vecx and vecy would make it a whole lot simpler. ;D |
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
|
|
|
|