How to make something my sprite can stand on

platforms how do you make them or rather what is the code you can use so that my char will stand on it