change dash/jump variable to 0 for dash and 1 for jump, and i dont think i need to explain gravity and dash speed