How to make something go away from my character (2d side scroller)

Sorry yeah i was busy.
A local variable is a somewhat basic concept

Im glad youve fixed it, good work!