It looks like you're new here. If you want to get involved, click one of these buttons!
I just DL'd a bunch of sprites. They were in a folder on iCloud Drive. Since apparently Codea can't access iCloud Drive, I moved the folder into Codea' dropbox.assets. But When looking for a sprite, Codea doesn't show folders. So I had to move all 60 files into the top level of dropbox.assets.
It'd be nice if Codea could see my folders.
Thanks!
Comments
@RonJeffries You can have folders in the Codea Dropbox folder, they just don’t show when you look in Codea. From the Files app, I created a folder Drop1 in the Dropbox folder and moved a png file into it. In Codea, I looked in the Dropbox folder but didn’t see the Drop1 folder, but as I keyed the asset.documents.Dropbox. in the sprite() command, the folder Drop1 showed and when I keyed Drop1. , the sprites showed.
Also remember to sync your folders after any changes.
Organise - don't end up like me with a real Dropbox mess.
p.s. I think the issue above is probably due to the order of display ie small case before upper case. The latter is probably off screen.
@Simeon - Dumb idea - could we have a drop down list of options which scroll, kinda like Visual Basic. If necessary overlapping the keyboard which would not be required during selection.
it's nearly useless if you can't browse them.
@RonJeffries - you can manage to display your path by editing, as I said above, or by typing out the target section eliminating some of the other options. I regularly have to refer to the Dropbox or filer app to ensure I get my target file.
when you do, for example, a sprite statement, the folder gives a view of the pictures. asset syntax only gives names. the pic view should include folders and allow clicking in.
Here’s another program to show all the files and folders in Codea. From the Files app, I created files inside folders inside folders inside folders inside a folder in the Codea Dropbox folder to see if this would show all the files and folders within folders, and it did. Run the code and scroll down to see all the files and folders. Files and folders within folders are indented to show their relationship. Not sure if this is useful or not, but I just wanted to mess with the asset structure using recursion.
PS. Added code to show more files that I forgot about.
i just feel like here in the 21st century, we shouldn't have to code up file list programs.
@dave1707 - thanks for the demo but I had a Codea crash with it - displayed 23001 entries in parameter window then crashed.
@Bri_G Wow, that’s quite a bit. I only had just over 4,000. I’ll make changes so I load just over a screen full at a time instead of the full table.
@Bri_G Here’s another version that just displays a small section of the table instead of the whole table at once. Since you have so many entries, I allowed for a variable scroll speed. Depending on where your finger is when you scroll, depends on the scroll speed. The closer your finger is to the left side of the screen, the faster the scroll speed. I also added entry numbers so you know where you are.
Let me know if this works or also crashes.
@dave1707 - that works fine, very interesting results. It reflects the file details in a Dropbox folder of mine - ie file.obj. Visible by Dropbox, Files and File Explorer. But, I can only successfully address the file as file_obj.