Shooting ball help

How would i make a sprite shoot a ball in the direction my sprite is pointing and the ball return to sprite over and over

A post was merged into an existing topic: Bullet code pls help