
12-11-2011, 05:42 PM
|
|
Banned
|
Join Date: Jul 2004
Location: London
Posts: 2,029
|
|
|
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. |
|
|
|