Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Dropbox and sprites in subdirs (ANSWERED)

edited July 2013 in Questions Posts: 90

One can store text data in a subdir of the Dropbox "Dropbox/Apps/Codea" directory. (Ex: "Dropbox/Apps/Codea/MyProject/userdata"--this works fine. The question is: is it possible to store sprites in "Dropbox/Apps/Codea/MyProject/progdata", and if so, how do you reference them in readImage()? I tried various combinations in readImage() like "Dropbox:spritepack:myprojectname:progdata:" and "Dropbox:myprojectname:progdata:" and they didn't work.

Comments

  • edited July 2013 Posts: 305

    yep it's possible ! but the syntax is : readImage("Dropbox:myprojectname/progdata")
    And you need to create directory in dropbox before and sync in codea.

  • Posts: 90

    Hey, that works! Thanks.

    To make it clear for anyone else reading this, if you have a sprite at the Dropbox pathname:

    Dropbox/Apps/Codea/myproject/progdata/sprite.png
    

    you specify it in readImage like this:

    img = readImage("Dropbox:myproject/progdata/sprite")
    
  • Posts: 688

    Useful info, thanks for sharing

Sign In or Register to comment.