In the sprite for the projectile, have this script:

when I start as a clone
go to (player v)
point in direction ([direction v] of [player v])
repeat until <whatever makes the projectile get deleted>
move [whatever] steps
end
delete this clone