It's a pretty random project, though it's a project, I guess. Basically what this does is sets your X to your Mouse X pos subtracted by your sprites X pos and divides it by 2. Then, when your sprite touches the edge, sets the X back to the starter x and subtracts the Y pos by 0 - 5 * 2.
100% by @-Voxel- (me).