For example this issue is a problem, if you have a directory maps in path asset
and there your tmx-files.
If this problem occurs the following exception is thrown:
"org.anddev.andengine.entity.layer.tiled.tmx.util.exception.TSXLoadException:
Could not load TMXTileSet from asset: test.png"
I would suggest the following solution:
- Create a sub context in method
org.anddev.andengine.entity.layer.tiled.tmx.TMXLoader.loadFromAsset
before calling TMXLoader.load to which the filepath is bound
- Respecting this filepath in the constructor of
org.anddev.andengine.opengl.texture.source.AssetTextureSource.AssetTextureSource
in line 46
Another similiar solution is to have a custom AndEngine.AssetManager which has
a improved handling of relative file paths.
But maybe i have lost sight of something and my ideas are not so good at other
corners of the engine and its besser to use the simple WORK AROUND by modifying
manually the image source in the tmx-file and adding the path relative to the
asset-directory.
Original issue reported on code.google.com by balthazz...@googlemail.com on 3 Sep 2010 at 3:00
Original issue reported on code.google.com by
balthazz...@googlemail.com
on 3 Sep 2010 at 3:00