- Joined
- Mar 27, 2018
- Messages
- 23
Hi there.
I'm trying to make a BGM switching system in my map.
I want to dynamic switch specific music when player enter the different area.
But the question is when I call "PlayMusic" or "PlayMusicEx" to play my custom imported music file, the game will "hang up" for about 2 seconds.
I think it's because the game is loading my music data, but is there any function that I could use to "preload" my "music data"?
I want to make a "smooth music switching".
If you have any idea about this, thank you for any help!
Update
* I just tried to use "Preload(...)" but its still laggy when I switch music.
* And I tried to convert music file format to ".wav" but that does not make it work as a bgm.
I'm trying to make a BGM switching system in my map.
I want to dynamic switch specific music when player enter the different area.
But the question is when I call "PlayMusic" or "PlayMusicEx" to play my custom imported music file, the game will "hang up" for about 2 seconds.
I think it's because the game is loading my music data, but is there any function that I could use to "preload" my "music data"?
I want to make a "smooth music switching".
If you have any idea about this, thank you for any help!
Update
* I just tried to use "Preload(...)" but its still laggy when I switch music.
* And I tried to convert music file format to ".wav" but that does not make it work as a bgm.
Last edited: