I read mostly every thread, but couldnt find any useful information. I created a map using tilemap and got a .tmx file. Now i want to load into my Javafx project.
But keep getting errors like Can’t read input file! or No such Directory/File.
I did exactly the same like him :
JavaFX is a very capable and very easy to install graphics library - its even fast enough to do quite advanced 3D (alas no shaders yet!)
While there is a java tmx loader I couldn’t find a tutorial that suited me and there is a small wrinkle in that the tmx loader hands you awt images which aren’t suitable for JavaFX
The code has some comments and should be reasonably self explanatory, it does make assumptions about tile sizes which it really shouldn’t but with this code and a start you should …
also read this:
As it is possible to load a classpath resource as an InputStream (ClassLoader.getResourceAsStream(String)), you should be able to use the TMXMapReader.readMap(InputStream) and TMXMapReader.readTileset(InputStream) methods.
But he didnt offer the solution. Can someone help me pls?