Set dragon.direction based on horizontal movement