Simple platforming script I've used in some unshared projects. Just made the player sprite rotate at its movement rate.