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
adding Objects
By aarav1514, with 2 replies.
Last reply by danpost, over 4 years ago:
Try just: <Code Omitted>
Hiding some classes source code
By Roshan123, with 2 replies.
Last reply by danpost, over 4 years ago:
Roshan123 wrote...
I want to publish source code, but i want 2 classes to be hidden So is their any way to hide the souce code or lock the code for 2 classes
First, rename the scenario using menu option "Scenario >> Save as..." to avoid loss of codes. Then, using your file directories, delete the ".JAVA" files of the classes you wish to hide the source code of before uploading. You can test the "hide" before uploading by trying to open the editor on those classes.
Error with sound
By BogdanMicu, with 10 replies.
Last reply by XApple15, over 4 years ago:
BogdanMicu wrote...
Hai ca jucam barbut cu baietii poate nu isi dau seama.
Ai luat vreun premiu?
Player is glitching while fall...
By Genota, with 3 replies.
Last reply by Risen, over 4 years ago:
Genota wrote...
Thank you for your answer. Unfortunately a syntax error message shows up: "bad operand types for binary operator '&&' first type: java.lang.Class<Ladder_Long_Function> second type: boolean" What can I do to fix that?
Sorry, my bad. I've done a mistake in my code. This is right<Code Omitted>
Why my work look different when I put it online?
By 23571113, with 2 replies.
Last reply by 23571113, over 4 years ago:
How "999998s" come? It doesn't show before I upload my work. <Image Omitted>
GreenfootKara push a mushroom
By Janash0403, with 1 reply.
Replied to by danpost, over 4 years ago:
Janash0403 wrote...
im programming Kara in Greenfoot. Now I want to move the mushrooms, but I dont know, how
Please refer to my
Sokoban Movement Demo
scenario.
Any help on what this means?
By craigsapp6395, with 9 replies.
Last reply by craigsapp6395, over 4 years ago:
It worked at home. I assume it's something to do with the school network. Thanks for your assistance.
HP decrementor within a superclass method
By blossomburst, with 4 replies.
Last reply by blossomburst, over 4 years ago:
It works, thank you.
I definetely need help
By Max0309, with 1 reply.
Replied to by Super_Hippo, over 4 years ago:
Creating it once is enough. Let’s continue here:
https://www.greenfoot.org/topics/64224/0
My Enemies (Bots) float in/through Objects
By Max0309, with 1 reply.
Replied to by Super_Hippo, over 4 years ago:
You should have answered to your other message instead of creating a new discussion. I am using this now even though it doesn’t have the code included because this one has a useful title. You can use this line before checking for a hit (after line 35) from the code you showed in the other discussion. <Code Omitted>However, you will see an issue that the player also has. If it tries to move to a place it can’t reach, it stays where it is. If you are for example on the left edge (as the player) and press W and A (up and left), you are not moving at al
Still no answers?
By craigsapp6395, with 1 reply.
Replied to by Super_Hippo, over 4 years ago:
It won’t help anybody including yourself if you create the same discussion twice. Especially not after one single day and both with titles which say nothing about the problem.
https://www.greenfoot.org/topics/64220/0
How Do I Create Delay On Projectile Shooting?
By Akashi, with 1 reply.
Replied to by Super_Hippo, over 4 years ago:
Here is an option: Create an instance variable. Set the variable to some reload time (can be another variable) when the object shoots. Decrease the variable by one every act cycle if it is greater than one. Only allow shooting when the variable is 0. One second is usually between 50 and 60 act cycles at speed 50.
Need Help with removing object
By Max0309, with 4 replies.
Last reply by danpost, over 4 years ago:
Insert the following at line 23: <Code Omitted> Or, switch the order around: <Code Omitted>
Projectile Spam
By Akashi, with 10 replies.
Last reply by danpost, over 4 years ago:
You kept your old shooting code in.
I NEED HELP
By Ofv7, with 2 replies.
Last reply by Ofv7, over 4 years ago:
Im definitely going to need something else though at some point
79
80
81
82
83
84
85
X