ポスト #1 · 2022-01-29 02:14:55amにポスト 2.3年前
heyoradio | |
---|---|
Member | |
3 ポスト | |
Not Set | |
Reg. 2022-01-28 | |
Hello!
I have minor experience with theme editing, and I'd like to know if anyone could help me with getting a theme to play random menu music from a select assortment? Like if every time I loaded into the results screen I'd get a different looped BGM. Just haven't been able to figure it out. Any help at all would be super appreciated, thanks!
I have minor experience with theme editing, and I'd like to know if anyone could help me with getting a theme to play random menu music from a select assortment? Like if every time I loaded into the results screen I'd get a different looped BGM. Just haven't been able to figure it out. Any help at all would be super appreciated, thanks!
ポスト #2 · 2022-01-29 10:31:12pmにポスト 2.3年前
riskofsoundingnerdy | |
---|---|
Member | |
140 ポスト | |
Reg. 2011-12-18 | |
"Yeah, nah." |
I'm not sure if this is the best way to do it, but a way I used to do it was:
local max = 9; the maximum number of things to choose from
local num = math.random(1,9); choose randomly between the lowest value (here, 1) and the highest value (here, 9)
t[#t+1] = LoadActor("Sound_"..num); load one of the files named Sound_1,2,3,4,5,6,7,8 or 9
local max = 9; the maximum number of things to choose from
local num = math.random(1,9); choose randomly between the lowest value (here, 1) and the highest value (here, 9)
t[#t+1] = LoadActor("Sound_"..num); load one of the files named Sound_1,2,3,4,5,6,7,8 or 9
ポスト #3 · 2022-01-30 05:08:58amにポスト 2.3年前
razorblade | |
---|---|
Member | |
1,099 ポスト | |
Not Set | |
Reg. 2011-03-01 | |
You use any RageFileUtils functions to read and write the file, specifically to Sounds/ScreenEvaluation music.
Loading sounds via actors may stop playing the bgm when it goes to next screen (ScreenProfileLoad/Save, and ScreenEvalutionSummary)
Loading sounds via actors may stop playing the bgm when it goes to next screen (ScreenProfileLoad/Save, and ScreenEvalutionSummary)
ポスト #4 · 2022-01-30 09:51:15pmにポスト 2.3年前
heyoradio | |
---|---|
Member | |
3 ポスト | |
Not Set | |
Reg. 2022-01-28 | |
Unfortunately I don't have the experience to utilize RageFileUtils just yet, but risk's method ended up working for me and the bgm stopping at the next screen isn't going to be an issue for me. Thank you guys so much for the responses! <3