Create Your First Project
Start adding your projects to your portfolio. Click on "Manage Projects" to get started
Music Manager
Music Manager
Music Manager
Overview
For our 2D GameMaker project, I implemented a Music Manager system to control background music across different rooms. The system automatically selects the correct music depending on the current room and creates smoother transitions between tracks using fade-in and fade-out logic.
My Contribution
I created and integrated the Music Manager object and supporting music script. The system checks which room the player is currently in and assigns the correct background track, such as menu music, interior music, or town music.
I also implemented music transitions so tracks do not change abruptly when moving between rooms. The manager stores the current song, the target song, fade timing, and volume values, allowing music to fade out before the next track fades in.
Technical Implementation
The system includes:
Room-based music selection.
Persistent Music Manager object.
Current song and target song tracking.
Fade-in and fade-out transitions.
Music volume control using global audio settings.
Helper function for setting in-game music.
Tools Used
GameMaker Studio 2
GML
GameMaker Audio System
What I Learned
This system helped me understand how background music can be managed across multiple game rooms. I learned how to use persistent manager objects, control audio instances, store active songs, and create smoother music transitions instead of sudden audio changes.







