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
Method isnt stopping even though I set the boolean to the opposite value
By duckquack10393, with 1 reply.
Replied to by danpost, almost 5 years ago:
duckquack10393 wrote...
For some reason even though I changed the value of the isGameOver boolean to true, the method still keeps on running.
You changed the value of the
isGameOver
boolean
in
a
world to true, but that would not be in the running world. You changed it in another world that you created on the previous line.
Click on box to get the next dialogue.
By Furko, with 2 replies.
Last reply by Furko, almost 5 years ago:
It works now. I couldn't find the mistake on my own, so thank you very much for sharing your insights!
weird greenfoot update? how to revert?
By Aaron-aid, with no replies.
its all green and stuff and the code looks dif
Hello I watched a Youtube video on how to make a maze, I keep getting Error's I need help! (I am new to Greenfoot)
By Rylan2005Jack, with 1 reply.
Replied to by danpost, almost 5 years ago:
Remove line 2. Also, the
getColorAt
method does not work on a
World
object (it works on a
GreenfootImage
object) and requires two
int
parameters, not one.
how to show the time used local computer time?
By mariq_rasyid29, with 1 reply.
Replied to by danpost, almost 5 years ago:
mariq_rasyid29 wrote...
the format is hours : minutes
Please refer to my
Value Display Tutorial
scenario.
Clock
By ronald, with 29 replies.
Last reply by ronald, almost 5 years ago:
<Code Omitted> I just insert this code into the circular bar I'm remaining there is no way to do
How making this to be array?
By mariq_rasyid29, with 10 replies.
Last reply by mariq_rasyid29, almost 5 years ago:
Super_Hippo wrote...
<Code Omitted>
thx :)
Error in site version but works on local computer
By Olexandra, with 1 reply.
Replied to by Super_Hippo, almost 5 years ago:
Not sure if this is causing your error, but try to change: <Code Omitted>to <Code Omitted> And similar everywhere.
what are the codes to bring up a java gui interface?
By divinity, with 2 replies.
Last reply by divinity, almost 5 years ago:
just want to see how it is looking before i start the real coding. just want to codes well just once
Why aren't "Pilze"(pilzeSpawnen) created.
By Gallier, with 3 replies.
Last reply by Super_Hippo, almost 5 years ago:
The constructor and everything in it will execute when the world is created. If wou want the methods to be executed at a later point, you can add an “act” method to your world which is automatically executed once each act cycle. You can use a variable as a timer and call the methods after a set number of act cycles.
if actor.class && actor.class isTouching("class".class), then...
By Gallier, with 1 reply.
Replied to by Super_Hippo, almost 5 years ago:
The “isTouching” method is protected, so you can’t access it from the World. You could “cheat” and create a public method which does the same thing. The alternative is to have the code in the object which both actors should touch. <Code Omitted>
How to generate the entire timing of the simulation
By Jemy, with 20 replies.
Last reply by danpost, almost 5 years ago:
Jemy wrote...
I hope the method i wrote above is correct for setActive.
How can it be, when it creates
Server
objects and it is coded to be in a
World
subclass?
the setActiveServers needs to be called, i think it will be called in world constructor
Yes -- AFTER calling
serverPopulation
.
Greenfoot DARK THEME
By Roshan123, with no replies.
@danpost plz tell me the way to fix the problem
Click it
Instanceof (every keywords r colorful except instanceof) and the last most curly brace at the end of the code are black in color Rest of the curly braces are cyan except the last one And aslo tell me....how to change the white frame of greenfoot app to black frame???
How to print string on the world
By Jemy, with 2 replies.
Last reply by Jemy, almost 5 years ago:
RcCookie wrote...
To show a string on the world: <Code Omitted>To create an image with the text that which an actor may use: <Code Omitted>
Thanks for your help. let me try it
Multi-Thread programs online
By RcCookie, with no replies.
I would like to work with multiple threads to execute some code parallel without the scenario freezing. Simply using java.lang.Thread may work fine offline, but online "Thread.start()" simply calls "Thread.run()" with does not result in an async execution. Does anybody have a workaround that works online?
72
73
74
75
76
77
78
X