Source Academy Modules
    Preparing search index...

    Function set_scale

    • Set the scale of the object. Mutate the object.

      Parameters

      • obj: GameObject

        object to be set

      • x: number

        new x scale

      • y: number

        new y scale

      Returns GameObject | undefined

      game object itself