Example c3p
Removed the default controls of the platformer behavior and used an instance variable to set the direction where to jump to.
It is not perfect, it currently requires to first go in a direction (left or right) before jumping, but it still does display the idea on how to do it.