Hi, I'm a beginner in greenfoot, and when I export my program, I go to the directory I exported it to, open it and...
All I see is the background (subclass of world).
Any help would be appreciated.
P.s. I'm using a MacBook Pro, 13".
I believe its suffix must be '.gfar' (which has the same format as a '.jar' file) for greenfoot to open it. Rename the file to adjust the suffix and try opening it then.
I've tried, and it first came up with a sign saying no directory found or something...
I tried reopening it and got this:
The output directory for the archive being extracted already exists. You must remove the existing directory before you can extract the archive.
Users/max/lvl
also note that I tried again to export as a .jar file and I got a green foot terminal window, but kept on getting error messages in this window saying 'Directory does not exist'
I've tried, and it first came up with a sign saying no directory found or something...
I tried reopening it and got this:
The output directory for the archive being extracted already exists. You must remove the existing directory before you can extract the archive.
Users/max/lvl
With this message, all you had to do was move it into a separate folder or into another directory.
Hi, I'm a beginner in greenfoot, and when I export my program, I go to the directory I exported it to, open it and... All I see is the background (subclass of world). Any help would be appreciated.
When you say "export my program", what exactly do you mean - what are you trying to do, and how do you go about it?
If you are just trying to create a standalone jar file that lets you play the game, perhaps the problem is that you are not creating any actors (and adding them to the world) in your World subclass' constructor. If you are trying to do something else, please be more specific.
ok that might have been the problem, but please tell me how to make my actors subclasses of world without deleting them and re-writing them.
At the moment they're just subclasses of 'actor'.