I am making a level editor for my game. I am having trouble saving screenshots and using them for my widgets. The game is supposed to take a screenshot and then use the screenshot as the level image. Example from an official level.
This is the code I currently have. I have it set up currently to check if the file even exists for the game to read before trying to import it, but it keeps saying that it doesn’t exist.
It is currently looking for an image in this example called 'Test Level.png" and I am looking in the correct directory as shown here.
Surly I am doing something wrong here. I have tried for several weeks trying to get this to work with no avail. I even tried looking this up and not finding anything that works. I have the image in the correct location and it still does not find it.






