The EntityParent command attaches an entity to a parent, which is useful if it has an independent existence spanning several characters. Otherwise, when it's created, you can supply the parent entity as a parameter.
Parenting however is a "hard" relationship: every movement the character makes will immediately and completely affect the camera. It's a good choice for shooter games that require very precise camera controls, but not so much for platformers, because it will seem very rough. For smoother camera movement, there are some good examples in the code archives (revolving around the principle of moving the camera towards the desired position by a given proportion each frame).
|