Adding Music

This forum is currently in read-only mode.
From the Asset Store
6 looping tracks to use in your games and projects. These tracks are in the style of the 1960s detective movie genre.
  • I accidentally posted this in the Construct 2 forums already, and the only suggestion I got involved using an object that isn't available in Construct Classic, so if you guys don't mind, I'm going to try again here:

    I'm a total noob. I've been trying to add music that I made to a game for a while now, and I've not yet been successful. What is the most popular way of doing this? I've been trying to use the XAudio2 object to "autoplay resource" at the start of the layout. I have an mp3 and a wav version of the same song in the music folder under Project, but neither of them shows up as available when I try to add them to the event. Am I doing something wrong? Is this not the correct way of going about accomplishing something like this at all? Any advice is welcome. Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1.) Go to event sheet

    2.) Create event start of layout or when you want music to play

    3.) Click on New action next to start of event

    4.) Go to XAudio2 and click Autoplay file

    5.) In the filename to load area write AppPath & "name of song.mp3"

    Also have your music file in the same folder as your cap or exe for this method.

  • It worked! Thank you! I didn't have the music in the same folder as the game before. I guess that was my problem.

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