Here's a complicated script that will allow your sprite to move up and down ramps, jump, and fall down to another platform.
https://wiki.scratch.mit.edu/wiki/Physics_Engines