Function LoadEffects:tlEffectsLibrary(filename:String) | |
Description: | Load a TimelineFX Library |
Returns: | tlEffectsLibrary |
Details: | In order to load in an effects library, you need to do a little preparation first. Monkey applications currently cannot unpack zip files, and TimelineFX .EFF files are essentially that. What you need to do first is unpack the .eff file into a folder of the same name inside tthe "data" folder of your monkey app. For example, if you have an EFF file called explosions, then unpack this into your data folder in a folder called explosions (You might find it easier to rename the extension to .zip). So the folder structure should be MyApp.Data/explosions/ Inside this explosions folder you should see a DATA.XML file and a bunch of PNG files (tt will also have a thumbnails folder which you can delete if you want to save space as it's not needed). It's import that your App is ready to accept files with an XML extension so you need to make sure your #TEXT_FILES (either set at the top of your app, or in your config file) variable looks something like: #TEXT_FILES="*.txt|*.XML|*.json" Note that XML is in caps, this is because it is case sensitive and by default the timelineFX editor saves in caps! If you want both then just simply add both to the setting. Once that is done you can load the effects with: Local MyEffects:tlEffectsLibrary |