I have got a day night cycle completely working in a text adventure I'm programming however I want different music to play using console.beep at different times while you are playing the game.
Is there anyway to Pause a thread then resume it? Whenever I use "threadname.suspend()" it says it is deprecated.
an example would be,
If night = true then
musicday.suspend()
musicnight.resume()
if night = fale then
musicnight.suspend()
musicday.resume()
Please if you have any experience with solving these problems any assistance would be appreciated.
Is there anyway to Pause a thread then resume it? Whenever I use "threadname.suspend()" it says it is deprecated.
an example would be,
If night = true then
musicday.suspend()
musicnight.resume()
if night = fale then
musicnight.suspend()
musicday.resume()
Please if you have any experience with solving these problems any assistance would be appreciated.