2D side-scroller AI - running up/down stairs?

Hey Everyone,

I have an enemy that chases after me when I run, which is fine if I’m on flatland. But how do I make an enemy chase me up or down a hill/set of stairs in a 2D side-scroller? And how do I do this without the enemy flying off the ground? The enemy is currently restricted to the x-axis.