How do I attach a camera to an object?

Right now I’m messing around in the game engine trying to make what is basically a platformer. I haven’t watched any tutorials or messed with the engine at all in a few weeks. The only thing that I can’t seem to remember is how to attach a camera to an object. Can anyone help with this?

First, select the camera, then select the object and either

  1. Press Ctrl-P to parent the camera to the object, or
  2. Go into edit mode, select a vertex, and press Ctrl-P. This will use vertex parenting, where the camera won’t inherit the rotation of the object.

Thanks for the help.