Quantcast
Channel: Answers for "Audio loops too early"
Viewing all articles
Browse latest Browse all 4

Answer by David Kamunyu

$
0
0
Hey, From previous experience, I have learnt that it is a good idea to avoid case and while. Don't get me wrong, I love swearing into the screen as much as the next guy when things aren't working correctly, but IF has been a long time friend and companion and would always work well, so long as the checks are good. So if you could make a check, like if (land){CODE} else if (sea || Sea_Under){code} and so on, you can even toss in a check that can ensure that the music plays only at a certain time... maybe by calling a function for music playing in {code part}, with an audio.loop = true; line. So one call and the rest you leave to the system. I don't want to change your code, but it could save you a headache :) However, if you have some kind of superpowers and figure out how to make the CASE work, please x 20 share, because I'm also interested in how to make use of it... :D

Viewing all articles
Browse latest Browse all 4

Trending Articles