This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Discussions
You need to login to take part
Current Discussions
Help, coding issues.
By luigidude125, with 3 replies.
Last reply by bourne, over 11 years ago:
If you want to return false when the following is true (as well as the opposite, i.e. return true when is false) getObjectsInRange(200, Princess.class).isEmpty() Then return that with a "not" (!) at the front of it Like the following: return !getObjectsInRange(200, Princess.class).isEmpty();
full screen
By RedCreeper, with 1 reply.
Replied to by danpost, over 11 years ago:
Try typing 'fullscreen' in the search bar and looking at some of the scenarios and the discussions about it.
Change variable value in another class
By DownKost, with 5 replies.
Last reply by DownKost, over 11 years ago:
Thank you very much
Packages in Greenfoot
By kiarocks, with 4 replies.
Last reply by davmac, over 11 years ago:
No, as they aren't necessary for Greenfoot's purpose.
Discussion for Workshop
By JetLennit, with 9 replies.
Last reply by bourne, over 11 years ago:
That would require a list of identifiers of those maps that you like. Each identifier would somehow have to uniquely correspond to a particular user and a particular map of that user. A question would be how many likes are each user allowed to give? Again it would consume the space available per UserInfo very quickly, decreasing amount dedicated to map data
HELP PLEASE!
By mezboycalday, with 14 replies.
Last reply by danpost, over 11 years ago:
You should be able to use 'counter.add(-counter.getValue();' or 'counter.setValue(0)'.
Help please!
By mattjames, with 23 replies.
Last reply by mezboycalday, over 11 years ago:
once again jones plz help
Making the game sleep
By mattjames, with 10 replies.
Last reply by mezboycalday, over 11 years ago:
jonesy la help me please reply asap
Help!
By allyjw79, with 4 replies.
Last reply by davmac, over 11 years ago:
Ah, I see. I think danpost is right. You seem to have confused Greenfoot, the application, with this website (which is the Greenfoot website). If you don't have Greenfoot installed, follow the Download link above and the instructions there. The instructions regarding opening scenarios are referring to the Greenfoot itself, not to the Greenfoot website.
Error at the opening/saving of scenario
By Nonob, with 1 reply.
Replied to by Nonob, over 11 years ago:
Ok the support told me what to do I tell you here how to solve this problem easily. You go to you Greenfoot installation folder, then you open the folder lib, then you find the file bluej.defs and you open it with the notepad. Here you will have a line where it's written : #bluej.lookAndFeel=crossplatform You have to erase the # from this line and then save. If it doesn't want to save on this folder, save it to your destkop and then copy your file into the lib folder. Now it should work !
barriers
By RedCreeper, with 1 reply.
Replied to by Gevater_Tod4711, over 11 years ago:
If you want to make a transparent rect that's easy. You just have to check where the rect should begin and where it ends and set the pixels at this points to transparency using the setColorAt method. If you want to use circles it's a bit more difficult. Unfortunately you can't just overdraw the image with a transparent color. You need to overdraw the image you want with a color you don't use in your whole image. Then if you have overdrawn the circle you want to 'delete' you need to use two for loops to check the rect where you circle is in. Every pixel that is in the color you used to overdr
Need help
By CreepingFuRbalL, with 5 replies.
Last reply by CreepingFuRbalL, over 11 years ago:
Hey sorry but im not realy sure how i would begin or what coding i would use to make the maze game itself
Single Class Code?
By Ed.Betteridge, with 8 replies.
Last reply by Ed.Betteridge, over 11 years ago:
Thanks davmac, I think that is exactly what I was looking for, I'll give it a go :)
Out of heap space. What do I do?
By Entity1037, with 5 replies.
Last reply by Entity1037, over 11 years ago:
*facepalm* Thank you! So... I just need to make sure to create the instance when an event happens, instead of when the world loads... wow I feel stupid. :/
need help with move(double)
By RUMMAKER, with 17 replies.
Last reply by davmac, over 11 years ago:
what didnt work :
I think the problem was that you used an 'int' variable for angle. That only gives you 6 possible directions (there are 2 x PI radians in a full circle, i.e. just over 6). Try:
788
789
790
791
792
793
794
X