Hi again Mocraton.
I couldn't see your example code as you sent the Dbpro instead of your dba file. Here's an example of how you can shoot bullets. I hope it can help.
cls rgb(255,0,0)
ink rgb(255,255,255),0
line 0,5,5,0
line 5,0,10,5
get image 1,0,0,10,20
autocam off
sync on
sprite 1,320,240,1
offset sprite 1,5,10
`bullet
sprite 2,0,0,1
scale sprite 2,30
do
set cursor 0,0
print "shoot with the mouse"
pointsprite(1,mousex(),mousey())
move sprite 1,0.1
`bullets movements
if mouseclick()
sprite 2,sprite x(1),sprite y(1),1
rotate sprite 2,sprite angle(1)
endif
`bullet
move sprite 2,2
sync
loop
function pointsprite(s,x,y)
dx = sprite x(s) - x
dy = sprite y(s) - y
ang# = wrapvalue(atanfull(dx,dy)*-1)
rotate sprite s,ang#
endfunction
Cheers.
I'm not a grumpy grandpa
