Maybe I missed something in the release notes, but it doesn’t seem to work anymore - at least in the simulator. Not a problem for image loads, as you can pass a second parameter specifying base directory, but the spritesheet load call doesn’t support this.
A simple test:
local path = system.pathForFile("image.jpg", system.TemporaryDirectory)
print("path", path) -- path is good, file is there
local im = display.newImage(path)
print("im", im) -- nil
local im2 = display.newImage("image.jpg", system.TemporaryDirectory)
print("im2", im2) -- OK, but won't work for spritesheet load
Any confirmation that this call is deprecated? Or that I’m just confused? All I really need to do is load a spritesheet from either Documents or Temp directory, not the default resource directory (which is not writeable in a valid app). [import]uid: 3953 topic_id: 6287 reply_id: 306287[/import]