I can see now that my programming experience is severely lacking: I have a lot to learn!
Basically, I'm compiling to Windows, and... OK nevermind, I don't know the terminology. If I compile to Windows and I choose where I want to game saved, then Stencyl opens up file explorer where I chose? That's the folder I'm trying to be able to access with the external data stuff. Say I made a 2D Minecraft game and saved it to my desktop, now my desktop has the folder "Paper-Minecraft" or something.
If the player (me in this case) took a screen-shot, it would be saved somewhere under
C:\Users\com-user0\Desktop\Paper-Minecraft\assets\data\{whatever else}. What I'm instead trying to do is have the starting point for where saves go to be in that initial folder where
Paper-Minecraft.exe, so I can instead save screenshots to
C:\Users\com-user0\Desktop\Paper-Minecraft\Screenshots\{image}. I wasn't really planning on trying to save anywhere outside of the games folder.
The other thing I'm trying to do is allow the user of my program to switch between saving screenshots as .png or .jpg. Those are the only two formats I think would be useful. I thought that by commenting out the
if (path.substr(path.length - 4).toLowerCase() != ".png") { path += ".png"; } bit I could instead make the extension either .png or .jpg when using the
block. So I can write
Screenshots\Image.png or
Screenshots\Image.jpg into the text field based on what the user wants to save the image as.
Hopefully that clears things up a bit. I haven't actually made a Paper Minecraft game, this was just an example, but I have attached some images to try and get my point across a bit better.
Thank you,
Annulus