Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / shooting (pro)

Author
Message
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 10th Jan 2005 05:06
Hi guys i need help with a little code to make my gun shoot i tried the code for the tutorial in darkbasic pro but its bugged.

thanks in addvanced
smart guy-
The admiral
22
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 10th Jan 2005 05:35
Hey dude you have been posting all over the place. People have been telling you to search in the code base there are fps engines in there that will help you out.

[href]www.vapourhost.com/~flyer[/href]
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 15th Jan 2005 12:52
what kind of gun is it(rockets fire slower than bullets)? What do you need it to do? What have you done so far? Whats wrong with what you do have already? I may be able to help you if you can answer these questions.
Acolyte Entertainment
19
Years of Service
User Offline
Joined: 28th Dec 2004
Location: Oregon, US
Posted: 15th Jan 2005 14:44
well first it is a machine gun like my bullet shoots and stuff now but you like cant see it that well. secondly i want to make it so that you can them shoot better 3rd this is my code
if mouseclick()>0 and dst=0
shot=1
bdst=1
show object 2
position object 2,object position x(4),object position y(4)-1,object position z(4)
rotate object 2,camera angle x(),camera angle y(),camera angle z()
endif
if object position x(2)<0 or object position x(2)>4000 or object position z(2)>4000 or object position z(2)<0 or object position y(2)<0 or object position y(2)>1000
hide object 2
dst=0
shot=0
endif
if shot=1
dst=dst+1
bdst=bdst+1
endif
if shot=1
move object 2,100
dst=dst+1
endif

Login to post a reply

Server time is: 2024-11-27 19:52:56
Your offset time is: 2024-11-27 19:52:56