I have a probleme with the include tag in my xml project. I want to be able to reference two external library (just assets) in the main project xml with embed tag to false and load this assets later.
I create a include.xml in main folder of my projects. In the main project.xml, i add include tag with path to my assets folder projects.
The <include /> tag will look for an XML project file under that directory. From there, that XML file would specify <asset /> tags, or whatever you need. If you need to pass data to the child XML file, try using a <set /> tag up above or just hard-code it in the child XML.
Otherwise, try using an <assets /> tag instead of <include />, might be what you’re looking for
Right, sorry, it should look for “include.xml” if you specify a directory path (<include path="to/extension" />) but can accept any file name if you specify it directly (<include path="/to/other/extension/include.xml" />)
When i use the loadSound function of Assets class ,i have encounter this running error :
TypeError: Error #1007: Instantiation attempted on a non-constructor.
It would seem that error come from the “loadAudioBuffer” of DefaultAssetLibrary.hx. A party of code are commented. and we have only getAudioBuffer function.
In this function, i must have a loader who load the sound passed in parameters. But this part of code is commented, unfortunately…
How i can un-commente this part of code to use it ??
This file is auto-generate…