How can i make a solid but jumpable cliff like in pokemon?

hello everyone, i need help:
how can i make a solid (-y) but jumpable (y) actor, i mean like in pokemon, where the player can jump over the cliff, when the position of the player is at +y but the position -y is solid and he can´t walk through or jump over!
how can i make a solid (-y) but jumpable (y) actor, i mean like in pokemon, where the player can jump over the cliff, when the position of the player is at +y but the position -y is solid and he can´t walk through or jump over!
Comments
When all:
Rule: if player.position.y < 100
Collide: Bounce when colliding with actor of type (cliff)
You might need to turn physics>restitution for both the cliff and player down to 0 if you just want to stop the player and not actually bounce off it.
look to:
skip to 2:50 - 3:00 and you´ll see the "cliff" is solid from position -y (under the cliff) how you can see, but when you skip the battle and look to 4:05 - 4:10 than you should see, that you can jump over the "cliff" when your position is +y (over the cliff)
any idea?