Source Academy Modules
    Preparing search index...

    Function set_interactive

    • Set the interactivity of the object. Mutate the object.

      Rectangle and Ellipse are not able to receive configs, only boolean i.e. set_interactive(rect, true); set_interactive(ellipse, false)

      Parameters

      • obj: GameObject

        object to be set

      • config: ObjectConfig = {}

        interactive config to be used

      Returns GameObject | undefined

      game object itself