Time for action — play some mod music
It's always good to know alternate ways of doing things, and so we are going to learn to how to play module files—another type of file that can contain music.
1. Start a new blank game project in Construct and name it
ModTest
.2. Insert the
MOD
object into the layout from the group Audio.3. Save the project in a folder of your choice, and then find a module file of
.xm
or.it
format. These can be found online and are often free to download (a further benefit of using them in games).4. Put this music file in the same folder as the project and return to Construct Classic.
5. Now switch to the Event Sheet Editor.
6. Insert a new event and choose the
MOD
object. Then select the condition Is Playing and then invert it.7. Now, add a new action for the event, choose the
MOD
object again, and select the action Load file.8. In the next box, enter
AppPath & "Yoursong.ext
", whereYoursong
is the name of your chosen song file and.ext
is the extension of your...