Have you actually tried any of the advice posted here? My previous comment does what you want.
Not "exactly" like Hero Jump, but close enough. You can tweak scroll and jump speed, parallax and other values.
Event #3 controls the scrolling, you can change it to (160, player.y), or to something like (160, lerp(scrolly, player.Y, dt*8)) if you want smoother movement.