Hello my Name is Zach and I recently , Id say about 2 months ago , started using DBC and I am quickly getting used to the language. Before i start making a game , which would be a First Person Shooter probably , I want to soak in all the basic mechanics I need to know to make it an acceptable and playable game. What I am trying to soak in right now , is bullet mechanics. I am trying to figure out how to simply make bullets.
Ive had success with only one bullet being able to appear on the screen untill that same bullet runs out of life.(BulletLife = 0 )
This is the code I use
make object sphere 2,2
hide object 2
If mouseclick()=1 and BulletLife=0
Position object 2,X#,Y#+35,Z# (Camera angles)
Set object to camera orientation 2
BulletLife=25
Show object 2
EndIf
If bulletlife > 0
Dec bulletlife,0.5
Move object 2,30
If bulletlife=0 then hide object 2
EndIf
What I am trying to figure out is how to fire bullets not using the same bullet object over and over , but by creating a new sphere(bullet) everytime the fire button is pressed and deleting it once a certain condition is met such as (collision detection with the bullet on a matrix or wall).
If tried to use this code but it works with no sucess
If mouseclick()=1
make object sphere 2,2
set object to camera orientation 2
Position object 2,X#,Y#+35,Z#
BulletLife=25
End If
If BulletLife > 0
move object 2,30
Dec BulletLife
If BulletLife=0 then delete object 2
EndIf
I am using this code in a Do loop and it always has an error that says "object has already been created" and I cannot find a way to get around this. I know I am doin something wrong because I am not that bright lol , If someone has any tips ,suggestions or TUTORIALS

, I would glady appreciate it.
Thx Zach
HaHaHa, Its G-Unit Baby...