slycrel/JSTileMap

Fail to see a TMX Map using SpriteKit and JSTileMap

Closed this issue · 2 comments

Hi!

Thanks for getting back to me on SO for the issue i have mentioned here: http://stackoverflow.com/questions/21556625/fail-to-see-a-tmx-map-using-spritekit-and-jstilemap

I have attached here the attached images that cause me an issue. The content of the TMX file can be seen in the SO link i have mentioned.

Thanks for the help!
new_york_map_bl 2x
new_york_map_br 2x
new_york_map_tl 2x
new_york_map_tr 2x

Hey @mcaylus , I've got a TMX map put together based on your SO XML and the above images and am able to reproduce what you are seeing. I'll look into this further this evening and see if I can figure out what's going on.

Hi @mcaylus. It seems that the @2x suffix is causing the TMX map problems. The TMX map format is in pixels, yet when you load an image with the @2x syntax it loads the image as "points", essentially cutting the atlas image in half. So drop the @2x from your TMX file and image files and that should take care of the problem.

I'll look into this further, but in the meantime I'll add a note to the readme about this. Thanks and sorry for the trouble!

Also, I posted an answer to stackOverflow as well to hopefully help anyone else that runs into this.