My desired usage is this:
- Create a .tmx map using Tiled that specifies the background and the starting location of a bunch of what will become
PhysicsBody
objects in SpriteKit - Use JSTileMap to read the .tmx and display it
- Within the tilemap object that JSTileMap makes, reference the appropriate layers/objects/whatever to turn into various
PhysicsBody
objects, whose position is now controlled by the physics engine
I've successfully done 1. and 2. above but I'm stuck on 3. I can reference a layer or object, but when I even try a simple test to change its position (using the setPosition
method), it crashes.
I'm very open to using something other than JSTileMap if that would make the ultimate goal of getting manipulatable layers/objects from a .tmx easier.