this is the shooting function from blitzkrieg remake from classic games thread
i beleive setting sprite physics bullet like this it should bounce off other physics objects but havent tested
function shoot(x# as float,y# as float,angle# as float, force# as float)
local bullet as _bullet
bullet.ID=CreateSprite(0)
SetSpritePosition(bullet.ID,x#,y#)
SetSpriteColor(bullet.ID,0,200,0,255)
SetSpriteSize(bullet.ID,5,5)
SetSpriteShape(bullet.ID,2)
SetSpritePhysicsOn(bullet.ID, 2) //2=dynamic
//SetSpriteAngle(bullet.ID, angle#)
SetSpritePhysicsIsBullet(bullet.ID, 1)
SetSpritePhysicsMass(bullet.ID,10)
vx#=cos(angle#)*force#
vy#=sin(angle#)*force#
SetSpritePhysicsImpulse(bullet.ID,x#,y#, -vx#, -vy# )
bullet.time#=timer()
bullets.insert(bullet)
endfunction