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
Remove object from world after being shot
By SanderNeele, with 4 replies.
Last reply by danpost, over 4 years ago:
SanderNeele wrote...
So two actions at once.
Yes:
danpost wrote...
<Code Omitted>
... two actors at once.
Implementing Scrolling SuperWorld
By hernry2812, with 3 replies.
Last reply by danpost, over 4 years ago:
hernry2812 wrote...
When my RaceWorld is 1920x1440, the window is in the central of the world. I would like to move the window to another position, because I can't spawn my actor outside of the window.
But you can set its location outside of the window and have the scrolling mechanism "move the camera" back onto it. For example: <Code Omitted>Do this
AFTER
setting the scrolling background.
Error object is hit
By SanderNeele, with 1 reply.
Replied to by danpost, over 4 years ago:
Use: <Code Omitted>for each
raakt...()
call in act.
Single shot
By SanderNeele, with 7 replies.
Last reply by danpost, over 4 years ago:
SanderNeele wrote...
I do not understand what I have to add in the code. I'm quiet new to Greenfoot. Can you show me what the right code is? Thanks!
I mean: <Code Omitted>
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
78
79
80
81
82
83
84
X