Trying to make a flying character

I’ve just started making my new game called “Leef.” When I try to make the player fly back and forth, he just keeps sliding instead of stopping when I let go of the buttons! What is wrong with my game!? Also, he’s not supposed to be affected by gravity. Link:

try this. and the game is here

It worked! thank you!

1 Like