Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Game build behaving differently to how it runs in the editor

  • #1, by ianfox 7 years ago Zitieren
    I've run into an issue after making a couple of seemingly unconnected edits to my game.
    When returning to certain scenes using a 'resume' button (which loads an autosave) from the main menu the scene's background music no longer starts playing.

    For instance:
    1. Character is on 'Scene A' with 'BG Music 1' playing.
    2. Hit 'Esc' key to show Main Menu - 'Menu Background Music' starts playing 
    3. Hit 'Resume' button on main menu - sent back to 'Scene A', 'Menu Background Music' stops as it should,  but 'BG Music 1' does not start playing, despite all setting showing it should.  Doesn't even start when entering an adjacent room with the same background music.

    What bugs me is that this is only an issue in the built game, not when I'm running it in the editor, so I'm not sure where the problem actually is!

    I'm using and building for Mac so I was not really expecting any differences from editor to build.

    Any guidance appreciated.
  • #2, by sebastian 7 years ago Zitieren
    Has 'Scene A' an own music set or is it just continuing the music from a previous scene.
    If that, it sounds normal that the load game loads action "nothing".
  • #3, by ianfox 7 years ago Zitieren
    No all the scenes have the actual music file selected for background music. No 'continue music from previous scene' anywhere.
  • #4, by sebastian 7 years ago Zitieren
    No all the scenes have the actual music file selected for background music. No 'continue music from previous scene' anywhere.

    was the save created previously where these settings were different?
    Always test with recent save files, as things can break when loading a file 
  • #5, by ianfox 7 years ago Zitieren
    Thanks Sebastian,

    I went back in and deleted all existing saves and autosaves which seems to have fixed the issue.  (: