Super Mario Galaxy Object Database

Objects | Classes | Occurrences

Class: BgmChangeArea

Changes the background music using the stage's music information in StageBgmInfo. Supports several different changing modes.

Arguments

NameTypeGamesRequired?DescriptionValues
Obj_arg0IntegerSMG2False

Change Type: The music change type.

  • 0: Change Song
  • 1: Fade-out and Change Song
  • 2: Change State
Obj_arg1IntegerSMG2False

Argument 1: ChangeBgmName index into StageBgmInfo if Obj_arg0 is set to 0. ChangeBgmState index into StageBgmInfo if Obj_arg0 is set to 2. Fade time if Obj_arg0 is set to 1.

    Obj_arg2IntegerSMG2False

    Argument 2: ChangeBgmName index into StageBgmInfo if Obj_arg0 is set to 1. Fade time if Obj_arg0 is set to 2.

      Obj_arg3IntegerSMG2False

      Comet Music Type: Sets how music changes are handled during Comet missions.

      • -1: Music change is ignored during Comet
      • 1: Music change is enforced during Comet

      Switches

      NameGamesRequired?Description
      SW_APPEARSMG2False

      The object will appear when this switch is activated.

      SW_BSMG2False

      Invalidates this area if this switch gets activated. However, this only works in "TwisterTowerGalaxy".

      SW_AWAKESMG2False

      The object will become visible and resume movement when this switch is activated.

      Properties

      NameGamesRequired?Description
      BaseMtxFollowerSMG2False

      Objects of this class can follow another BaseMtxFollowTarget object.