View Single Post
  #2  
Old 12-11-2011, 05:42 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
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.
Reply With Quote