Hello World,
So let's say my game has 5 tracks(songs). What I want to do is when the game starts pick one of those tracks at random and start playing it at the given volume(this is set in another layout by a slider), then when that track ends I want it to pick another track randomly from the other 4 that are left(so without including the one/ones it has already played) and so on untill it plays them all at which point I want it to repeat the whole thing, pick another track from all 5, etc.
So how would I do this? I'm guessing I have to use functions? Because if I just put the events in the menu layout(has it's own event sheet) and then a track ends while the player is in the middle of a level(different event sheet) then it wouldn't work without a call function event in every sheet?
But I have no idea how to do the events, specially for the random part, or how to define the tracks.... I can't give each of them a unique variable like you would do a normal object, I can't put them in a family.... Could I put them in an array? And how exactly would that work?
As you can see I am pretty confused, please help.
Thank you.
P.S. One more question which is not related to the above, but I figured it's not worth creating 2 topics one after the other. I just updated C2 to the latest stable version(206), wasn't it supposed to have an option to lock/cap the framerate? I can't seem to find it....