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
Can somebody proofread this? I'm not sure it's perfect...
By ChafikAZ, with 4 replies.
Last reply by ChafikAZ, about 5 years ago:
As my teacher says, "Work smarter, not harder."
How do you write the length of the wait?
By ChafikAZ, with 1 reply.
Replied to by ChafikAZ, about 5 years ago:
I don't understand how I meant to describe the length of the wait... (Yes, I know it's measured in milliseconds)
How to make actor appear anywhere
By BlueHand, with 5 replies.
Last reply by danpost, about 5 years ago:
BlueHand wrote...
The rocket class
Did it not occur to you that
addObject
and
getObjects
were
World
class methods?
isTouching isn't working
By iDragon3o6, with 1 reply.
Replied to by danpost, about 5 years ago:
iDragon3o6 wrote...
This code is in the act method, but nothing happens if I start this: <Code Omitted>
Nothing wrong with that line. More info/code required.
One instruction class?
By BlueHand, with 3 replies.
Last reply by danpost, about 5 years ago:
BlueHand wrote...
Sorry, I meant: how do I add different labels to them? There's only one counter class so I'm not sure how to do that.
Add a
String
parameter to
Counter
class constructor.
How to make an object respawn after being clicked
By ninjapuffin, with 4 replies.
Last reply by danpost, about 5 years ago:
ninjapuffin wrote...
my objective is to make a game where you click a banana and it disapears. and ti need help w/ spawning more bananas after one is clicked
In
MyWorld act
method: <Code Omitted>An
addBanana
method is to be added also.
I cannot figure out why I have an error
By Rich11, with 8 replies.
Last reply by danpost, about 5 years ago:
Rich11 wrote...
I still have the error... What codes should I use in the new subclass?
Same error? Show current
YouLose
class codes (entire page).
Barrier
By Sathya_srikanth, with 3 replies.
Last reply by danpost, about 5 years ago:
REPOSTING: Remove lines 11 and 12 (a method that does nothing is a useless method). Replace lines 19 and 20 with: <Code Omitted>
Making a method available in multiple projects
By SliderG, with 1 reply.
Replied to by danpost, about 5 years ago:
SliderG wrote...
Can one modify the Actor and World classes that come with Greenfoot?
You could create extensions (subclasses to
World
and
Actor
)and then place them where they can be imported into projects when needed. You would then have your
World
and
Actor
classes extend them. Alternatively, but not something I would really suggest doing, is modifying the new class default code files found at: greenfoot/lib/english/greenfoot/templates
need help regarding main menu
By Zurah, with 8 replies.
Last reply by danpost, about 5 years ago:
RcCookie wrote...
Where did he write that quote?
It must have been edited out before I posted.
removing object from array on world by clicking at it
By Zurah, with 33 replies.
Last reply by Zurah, about 5 years ago:
thanks, i figured everything out i needed ^^
Boss wont die
By Sakuya, with 3 replies.
Last reply by danpost, about 5 years ago:
Sakuya wrote...
I see and why does the code think that, and how can I fix it?
Line 77 says it is false. Try moving line 219 up to before line 189.
help boss crashes game
By Sakuya, with 19 replies.
Last reply by Sakuya, about 5 years ago:
Thanks it worked !
i get stuck by my invisible walls lmao
By Sakuya, with 6 replies.
Last reply by Sakuya, about 5 years ago:
Thanks that worked, I still get stuck in the bottem but I guess that isnt that fatal. But anyways you helped a lot I cant thank you enough !
mouseClicked(null) doesn't work at all but mouseMoved(null) does
By M1S0, with 1 reply.
Replied to by danpost, about 5 years ago:
M1S0 wrote...
so what i'm trying to acomplish is to find out where the mouse is clicking, to do that i'm defining the mouse everytime it moves and i'm trying to find in which x,y it clicked, for some reason mouseClicked(null) does not trigger at all, i've tried spam clicking everywhere and i've even used an autoclicker to spam it a 100 cps this is the strip of code << Code Omitted >>
Your code requires that the mouse must be moving when the click occurs. Moving is not a necessary thing for a mouse click. Clicking is the only requirement here:
95
96
97
98
99
100
101
X