Hi, I took a little break from DBC but Im back! and need some help already. I have decided to make a little "beach head" type game, were enemys slowly advance toward you and you must mow them down with your fixed machine gun. I am using the following bullet code
Rem Project: bullets
Rem Created: 3/27/2004 6:52:41 PM
Rem ***** Main Source File *****
`setuo
sync on
sync rate 0
hide mouse
`dims
dim active(100,2)
maxwait=150
`make gun
make object cylinder 111,1
scale object 111,100,200,100
color object 111,rgb(0,0,255)
xrotate object 111,90
fix object pivot 111
`make bullets
for b=1 to 100
make object sphere b,1
color object b,rgb(255,0,0)
hide object b
next b
`main loop
do
`backdrop
color backdrop 0
`controls
if rightkey()=1 then yrotate object 111,wrapvalue(object angle y(111)+1)
if leftkey()=1 then yrotate object 111,wrapvalue(object angle y(111)-1)
`pos cam
position camera 0,15,-15
point camera 0,0,0
gosub shoot
`end
sync
loop
shoot:
`for
for b=1 to 100
`shoot
if spacekey()=1 and active(b,1)=0 and (timer()-lasttime)>maxwait
position object b,0,0,0
set object to object orientation b,111
active(b,1)=1
active(b,2)=200
show object b
lasttime=timer()
endif
`move bullet
if active(b,1)=1
move object b,.1
active(b,2)=active(b,2)-1
endif
`stop when bullet run out
if active(b,2)<0
active(b,1)=0
active(b,2)=0
hide object b
endif
next b
return
Ok so I got the shooting down, but how do I check to see if those bullets are hitting something, and if so, do something like place a small gray fading cube to simulate a cheap smoke effect, or better yet check to see if the bullet hit a soldier so that I can load a death animation?
Also I am quite confused on how to edit that code so that I can make it more like a FPS, and have the "gun" move according to the movement of the mouse, and fire when I click the mouse.
Well thats alot of stuff to ask for, but yall are nice guys

right?
P4 3.2Ghz/Alienware area 51/radeon 9800 pro 256mb/sound blaster audigy 2/5.1 surround sound speakers.