arronlee185 last edited by
Hi, jpsilverberg. What do you mean by "support or advice on rendering pdfs"? You want a tool to help you deal with <a href="http://www.yiigo.com/net-document-image-plugin/pdf-plugin/">pdfs</a>? I am also a green hand on this problem, have you got any suggestions?
Hi—This is possibly the greatest app ever. I'm trying to use a png image (created elsewhere and placed in my Camera Roll) as a fixed asset. I don't find a [+] button in the editor title bar, per option 1.
In general, I'm not sure how to access the file system on my iPhone. (As a former dabbler iOS Developer, I expect each project to have a sandbox...?)
You need to click once in the text of the Editor pane to get the [+] to appear to the left of the [?].
Could that [+] be iPad-specific? On my device (iPhone 5), the editor's title bar has only (L to R): Keyboard minimizer/library browse icon; Search (lens); Title (w/dropdown class & method picker); Help ('?'); Run/stop icon. (I want to use regions of my png as tile images for a game.)
Also—Since I don't want to depend on the image to be in my Photos, the idea of a project sandbox or a persistent assets folder seems preferable. Or as a kludge, encoding the image as a string within a source file... Can you tell I'm new here?
omz last edited by
@Exparrot On the iPhone, that functionality is hidden in the menu, when you tap and hold the cursor, you should see an "Insert..." item there.
Thanks! That got the image into the media browser with a name, right? I see an'_' prepended: _tileSet. What do I need to import to make that name visible? (Neither tileSet.show() nor _tileSet.show() works.)
@Exparrot To get something working with your image:
<li>Create a new script (the '+' at the bottom of the list of scripts).</li>
<li>Select 'Scene with Layers' instead of selecting 'Empty' as the script template.</li>
<li>Edit line 12 to put your image file name (with underscore) in place of 'Snake'.</li>
<li>Run the script. Your image should be at the center of the screen. Click elsewhere to move your image.</li>
<li>To go full screen, edit line 10 to read: self.layer = Layer(self.bounds)</li>
Thanks, ccc and omz! Traction at last. Voom!
The bare minimum script is: <pre>from PIL import Image; Image.open('_tileSet').show()</pre>