Hi,
If all the images are in the same directory as the main.lua file, then they work, now if I would want to put them separate for each level, and organise them as
You might want to build for device and test directories on the device. If I recall from previous posts, the corona simulator understands directories, but the device will fail when trying to load an image.
Have not tried this personally though. [import]uid: 8541 topic_id: 3529 reply_id: 10694[/import]
I’m testing just fine on my iPhone4 as far as images with directories go. The only thing not working on the device for me is playEventSound. [import]uid: 11024 topic_id: 3529 reply_id: 10697[/import]
i read something about android having problems with images with the same name (ignoring the extension)
in this case though the images were:
something.jpg
something.png
the advice was to use something_jpg.jpg and something_png.png so that they are different without the file extension
this may be the case when using images in subfolders where the images have the same name. I couldnt say for sure [import]uid: 6645 topic_id: 3529 reply_id: 10713[/import]
i dont know how deep you can go because I am only going one level atm, but I have no problems on all iOS devices putting images in directories. including sprite sheets, however the accompanying lua file needs to be in the main directory.
local mainMenuSheet = sprite.newSpriteSheetFromData(“images/menu-mainSheet.png”, require(“menu-mainSheet”).getSpriteSheetData())
local titleSign = display.newImage(“images/title-sign.png”,0,0)
Hi Everybody,
yes I did use the forward slash. I will try again, with a blank project just to test this first. I am also getting a 7" Android 2.1/2.2 tablet for testing on a physical device, I will let you know.
cheers,
Jayant C Varma [import]uid: 3826 topic_id: 3529 reply_id: 10725[/import]