Source Academy Modules
    Preparing search index...

    Function set_position

    • Set the position of the game object Mutate the object

      Parameters

      • obj: GameObject

        object to be set

      • x: number

        new x position

      • y: number

        new y position

      Returns GameObject | undefined

      game object itself