Put your finger/mouse pointer in front or behind the sprite to move it in the X-axis and place your finger/mouse pointer above the sprite to make it jump
Thanks to @griffpatch tutorials on YouTube.