You may look through the code to see how to do it. If you need help on any other things with a plateformer or any other game leave it in the comments no need to like or fav i just wanted to show the world this. I know there are actual plateformers out there but this is a quick check, not look around the code blind :)
A basic frame for a plateformer This is not my plateformer game if you are wondering :-} It will be slime run