Interaction with stairs

Hi everybody. I do play lode runnerna C ++. I had a problem. How do I make a character climbing the stairs, I was in the middle. Because it cuts at the top of the stairs in the unit, and can not get up until I find a middle ground between units. Thank you.