how to create a simple gravity system like in platform games??

thanks for the help