This site is being deprecated.
Please see the official X‑Plane Support page for help.
The autopilot in the default Cessna is pretty simple. It will only hold an altitude. So you'll need to get to the level you want then press the ALT button to have it maintain it.
Heading is controlled by the heading bug on the directional gyro. See the image below: the red box highlights the DG & the yellow box shows the knob to turn to move the heading bug.
This site is no longer being actively maintained.