Back to index

These functions play background music for your game.



Music = Music.LoadMod( modfile )

Loads a .mod music file into a variable. Do this before playing the music.

modfile is the filename of the .mod music file you want to load. (Example: "music.mod")

Music is the variable you will use to play the music that you loaded.





Music:Play()

Starts playing the music.





Music:Pause()

Pauses the music. Use Music:Play() to continue it.





Music:Stop()

Stops the music. Use Music:Play() to start from the beginning.





Music:Free()

Free the music from memory to make room for other things.


Back to index