every 20ms
oldx var = set to mousex
oldy var = set to mousey
var distancspeed = distance(oldx,oldy,mouse.x, mouse.y)
var shootangle = angle(oldx,oldy,mouse.x, mouse.y)
on mouse release
create a object (physic) at cursor
set force
100 * distancespeed
at angle
shootangle