-
Notifications
You must be signed in to change notification settings - Fork 21
Solve the path problem #13
Comments
… class which implements AssetLoader and use Helper.setAssetLoader(myAssetLoader) somewhat improves #13
I'm using a pretty poor solution to this issue that won't fit everyone's work flow, but might help some people:
Saving in Tiled will default the texture path back to "../images", which OpenFL won't like. I have a sym link in the "maps" directory to "assets" ("../"), so from OpenFL and Tiled the path "assets/images/texture.png" makes sense. Then in my project.xml I exclude the symlinked assets directory, so we don't end up in some crazy recursive purgatory. Now I can save in Tiled and run the game without the need to edit the map file by hand. Lovely! |
I like my approach more ;). My folder structure:
Then I add one line to the project.xml file of OpenFL:
So I also never need to edit the map files ;).. |
That approach is definitely less of a pain to work with, but I guess I like having all my textures in the same directory. I guess it doesn't really matter though! :D |
You could create a symbolic link from map_textures to your "images" folder though. |
You need to be very careful with paths if you don't want to edit the tmx file later (with a text editor), which actually sucks so i need to solve this! rynti mentioned an approach he used in Rygal.
related to #36
The text was updated successfully, but these errors were encountered: