Suggestion: Replace audio

0 favourites
  • 6 posts
From the Asset Store
100+ Musical High Quality Sound Effects for your game!
  • I recently found out that it is possible to replace audio being used in a Construct project without losing any event associations, but to do so currently you have to manually replace the .m4a and .ogg files in your computer's file explorer. If you try to import a file with the same name as an existing audio file, it just renames it, giving you two audio files, the newer of which wouldn't be associated with any existing audio events.

    It's not a huge deal to replace them manually, but it would be nice if when importing an audio file with the same name as another already in the project, that Construct would ask if you would like to replace the originals instead of just renaming it.

  • Yes this is true, if you want to replace the sound you must upload it with another name and change the name on the audio event then delete the old file.

    Deleting the old files before change the event with the new sound will delete all the event and you will lose your db numbers and tags.

    Also another request is to allow to delete more than one file on the project bar, if i want to delete 10 sound files or sprites i must delete it one by one, and this is waste of time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Would be convient to have this.

    in the mean time. Play audio by name. This is a manual text string of the file(without the extension). That way if you replace in the project you won't lose the action. then you can rename the files as needed.

  • Ah, thanks For some reason I hadn't thought of that. Probably cuz I'm still pretty new at this.

    Of course, that means if you ever need to rename the audio file, you'd need to change all the events, so each approach has its pros and cons I suppose.

  • true. you can go the extra step too.

    create an object(or use globas) with variables to the name of the file. Then reference the variable. So if the file name changes. you can just change the file name in the variable.

    Object.darkcastle = "ballad of darkness"

    Object.travalling0 = "travel1"


    I prefer using this form of mapping model for large games. For small quick games I tend to do just play the sound.

  • A good convention to follow. I'll have to keep that in mind. Thanks again for the tips.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)