i tried i really did but i cant seem to summon the bullet on command.
i tried to make it move. i really wanted to clone the bject so i could fire multiple shots.
rem SAG
rem Initial settings
autocam off
sync rate 40
hide mouse
position camera 0,0,-10
point camera xpos#,ypos#,0
set sprite 1,0,1
set sprite 2,0,1
set sprite 3,0,1
rem title screen
set cursor 200,0
print "SECRET AGENT GUY VERSION 0.01. PRESS A KEY TO PLAY"
load image "resources/Copy of 13h61m.bmp",100
sprite 1,0,0,100
wait key
rem load objects
load image "resources/level.bmp",100
load image "resources/line.bmp",201
load image "resources/standing.bmp",301
load image "resources/Carbunkle.bmp",1
load image "resources/JackOLantern.bmp",2
load image "resources/Lizard.bmp",3
load image "resources/Yburning.bmp",4
load image "resources/bullet.bmp",10
life#=3
health#=100
ypos#=336
rem main loop
sync on
do
bulletpos#=xpos#
sprite 1,0,0,100
sprite 2,0,385,201
sprite 3,xpos#,ypos#,301
sprite 4,600,330,1
sprite 10,bulletpos#,ypos#,10
hide sprite 10
if rightkey()=1 then xpos#=xpos#+1
if leftkey()=1 then xpos#=xpos#-1
if spacekey()=1
clone sprite 10,10
show sprite 10
inc bulletpos#,5
wait 1000
endif
if bulletpos#=bulletpos#+500 then delete sprite bullet#
if health#<1 then life#=life#-1
if health#<1 then health#=100
if life#<1 then print "game over"
if life#<1 then wait 5000 and life#=life#-1
if life#=-1 then end
set cursor 0,400:print "life:"
set cursor 50,400:print life#
set cursor 100,400:print "health:"
set cursor 160,400:print health#
sync
loop