Basic autoscroll primer:

In the MKF Dev Source, refer to the Buffalo Evasion or Finland Battlefield levels for reference.

A level becomes an autoscrolling level if you place the object obj_autoscroller in your room. By default, the autoscroller begins moving to the right at a speed of 0.5.

Place the object obj_right (found under Platform Movers in the Objects section) in the direct path of your autoscroller. In the obj_right's creation code, you can add the following statements:

CODE
scrollspeed = (speed)

This changes the speed of the autoscrolling. Important values to remember for the speed:
*0.5 = default slow autoscroll speed
*3 = Mario's run speed (used for The Library's RUN section)
*2.75 = Typical speed for most RUN sections involving chases (a little slower than Mario's run speed so that he can gain ground against the chasing object).

CODE
musicchange = true
filename = "music/mp3_escape.mp3"

This changes the BGM in the middle of the level. Useful if you want some fast-paced music to go with your RUN sections.

the musicchange = true line is required to change the music.
filename needs to refer to an MP3 file that exists in your music folder. It also needs to be in double quotes (")

This is a basic primer for a standard horizontal autoscrolling level. A more advanced autoscroll tutorial will show you how to make levels that autoscroll in multiple directions (i.e. Airship Armada, Fortress of Traps, The Library).