This is actually working as expected. Dusk automatically culls objects when they move outside the screen. This means that if you move the camera to where an object at its original position is outside the screen, it’ll remove it. This saves a bunch of memory and greatly improves Dusk’s speed.
For the player object and other persistent objects, you should create them manually and add them to the map rather than create them in Tiled. This will keep Dusk from culling the object, and has the added bonus of improved flexibility and control over the object. If you simply must use a Tiled object instead of a manual object, turn object culling off before building your map:
dusk.setPreference("enableObjectCulling", false)
Also, I’m currently working on a refactor of Dusk for 1.0. I know the lack of API docs frustrates a lot of people, so I can assure you that they’ll come with 1.0.
This is actually working as expected. Dusk automatically culls objects when they move outside the screen. This means that if you move the camera to where an object at its original position is outside the screen, it’ll remove it. This saves a bunch of memory and greatly improves Dusk’s speed.
For the player object and other persistent objects, you should create them manually and add them to the map rather than create them in Tiled. This will keep Dusk from culling the object, and has the added bonus of improved flexibility and control over the object. If you simply must use a Tiled object instead of a manual object, turn object culling off before building your map:
dusk.setPreference("enableObjectCulling", false)
Also, I’m currently working on a refactor of Dusk for 1.0. I know the lack of API docs frustrates a lot of people, so I can assure you that they’ll come with 1.0.