SiliconGhetto Engine API
    Preparing search index...

    Function cameraFollow

    • Make the 2D camera smoothly follow an entity.

      Parameters

      • entity: number

        The entity ID to follow

      • OptionallerpSpeed: number

        Smoothing speed (higher = snappier, default 5)

      Returns void

      sg.cameraFollow(player, 8);