Well, this isn't working at all, here is my first attempt at it.
(Entire Code)
`General Setup
`-------------
sync on
sync rate 60
pilot$="Ron Baker"
plane$="Patriot II"
`-------------
`Game Level 1
`------------
Game_Level1:
`Level 1 Setup
`-------------
playerx=330
playery=300
bulletx=330
bullety=300
shooting=0
do
cls
`Pilot Information
set cursor 0,0
text 0,0,"Pilot: "+pilot$
text 0,20,"Plane: "+plane$
`Plane Controls
if mouseclick()=1 and shooting=0
mx=mousex()
my=mousey()
shooting=1
gosub _Shooting
endif
`Pilot Setup
circle playerx,playery,20
sync
loop
return
`------------
_Shooting:
if shooting=1
circle bulletx,bullety,10
bulletx=bulletx-1
bullety=bullety-1
if bulletx=mx and bullety=my then shooting=0
endif
return
This didn't do anything except flash a circle where bulletx and bullety are and disappear.
My 2nd attempt,
`General Setup
`-------------
sync on
sync rate 60
pilot$="Ron Baker"
plane$="Patriot II"
`-------------
`Game Level 1
`------------
Game_Level1:
`Level 1 Setup
`-------------
playerx=330
playery=300
bulletx=330
bullety=300
shooting=0
do
cls
`Pilot Information
set cursor 0,0
text 0,0,"Pilot: "+pilot$
text 0,20,"Plane: "+plane$
`Plane Controls
if mouseclick()=1 and shooting=0
mx=mousex()
my=mousey()
shooting=1
endif
if shooting=1
circle bulletx,bullety,10
bulletx=bulletx-1
bullety=bullety-1
if bulletx=mx and bullety=my then shooting=0
endif
`Pilot Setup
circle playerx,playery,20
sync
loop
return
`------------
That just moved the bullet the complete opposite of where I clicked the mouse. Perhaps I wasn't clear enough so what I want is the bullet to go to where you click the mouse. You know aim and fire?
.:Thanks:.
Zeus