![]() |
Music not playing
It's really weird, because this just wont work...
PHP Code:
|
Temp. variables last temporarily until the function process ends, you'd need to store those arrays as this. variables as the temp. vars would only exist within the onCreated function.
It would also be somewhat cleaner to just create one multi-dimensional array to loop through and check the condition as opposed to having multiple if conditions. A check to prevent the playloop function occurring if the file is already playing when you enter a level is also good to avoid a very slight client pause this can cause. |
Can't believe i didnt catch the temp.vars. Appreciate the advise as well, going to implement it soon.
|
| All times are GMT +2. The time now is 12:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.