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
Hello again!
By JetLennit, with 3 replies.
Last reply by JetLennit, about 15 hours ago:
For anyone else curious there is a way to do this (though convoluted)! I used the Wayback machine to view an old version of my game's page, found the jar file in the code of the page, downloaded the jar, decompiled that, imported the project in Greenfoot, then made the changes for compatibility with new Greenfoot (java.awt.Color is no longer acceptable vs greenfoot.Color it seems). I do wonder if downloading a legacy version of Greenfoot would remove that last step. I'll find out later when I'm on not on an ARM based Mac. Edit: Seems clicking "View Applet" does the same thing as dealin
Black screen with truncated error: "lass: java.lang.RuntimeException - (JavaScrip"
By lmoellendorf, with 1 reply.
Replied to by lmoellendorf, 2 days ago:
To track down the cause of the `
RuntimeException
` I added some `
System.out.println("start of Intro()")
` statements to the constructor of my initial world class. They should have shown up in the browser console. But they did not. So I figured the issue must be in the static code of my initial world class. By trial and error I found out it was the `
static final
` keywords for the world background `
GreefootImage
` and
GreenfootSound
`. Here is a diff:
Publish failed: Invalid username or password
By lmoellendorf, with 1 reply.
Replied to by lmoellendorf, 4 days ago:
My bad: email-address != username I tried to login with my email address instead of the username
testing
By hafizz.hnn, with 6 replies.
Last reply by Shifashaikh, 30 days ago:
can anyone help me out to answer this question can we say actor which is moving upward or downward as moving left or right
Space Haven Project
By schaeff_lu, with no replies.
hallo mein Project ist nicht in der richtigen Größe was kann ich tun um es zu spielen
need help
By arumsari, with 1 reply.
Replied to by danpost, 2 months ago:
arumsari wrote...
need help << Code Omitted >>
The only thing I see wrong with your codes is in the second line of the
prepareBoard
method, which should increment the column (
c
) value, not the row (
r
) value. Don't really know what you need help with. You need to explain (in English, please) what you are trying to do and how the execution is wrong.
Need Help
By ThatsNotCode, with 1 reply.
Replied to by danpost, 2 months ago:
ThatsNotCode wrote...
I can't figure out how to make my background change colors every ten seconds, if someone could help me that would be amazing
With a simple int timer field: (note that at normal running speed, act is run about 60 times per second; hence value used) <Code Omitted> If using a range of colors:
How do i make a Project to .jar
By Zildrion, with 4 replies.
Last reply by Zildrion, 3 months ago:
tysm!!!! it helps me alot. But i dont want the bar on the bottom T.T . Whatever i take what i get
boolean not changing
By bonyay, with 29 replies.
Last reply by bonyay, 3 months ago:
danpost wrote...
bonyay wrote...
I think if this last error is solved, it will function?
My mistake. Line 28 should be: <Code Omitted> My last edit to
change
methods still stands as it should not matter which world is currently active here. The referencing bypasses that issue. And, it should have nothing to do with actor not in world as
act
method is not executed when not in world.
Between the time I posted that and your reply, I searched far and wide for a solution and ended up basically revamping a lot of the code. Good news tho
enemy help!
By An0n_N0mad14, with 10 replies.
Last reply by An0n_N0mad14, 3 months ago:
thats fine, i appreciate u helping, but i think im gonna make it so that there are three hearts and if it hits an enemy that one heart gets removed
get random subclass?
By bonyay, with 1 reply.
Replied to by danpost, 3 months ago:
bonyay wrote...
I was wondering if there was any way to get a random subclass? like, say i had a subclass of actor and then 3 subclasses of that subclass, and i wanted to select a random one of those 3 to display on the screen. is that possible?
Here is an example method using mock class names. The return type can be modified to be the parent class name.
issues with score and intersecting using "child classes"
By bonyay, with 2 replies.
Last reply by bonyay, 3 months ago:
I eventually figured it out myself (obviously, first post had that upload time delay), but thank you for the reply anyways!
how do I program hearts that act as lives ?
By shouldijuststartprayingatpquestion, with 1 reply.
Replied to by danpost, 3 months ago:
shouldijuststartprayingatpquestion wrote...
I wanna add Hearts that function as Lives into my game and I have done that by creating three different heart actors (Named Heart, Heartt and Hearttt) but now I want those Hearts to disappear if my Player touches an object (in this Case a bomb) and reappear when my player touches another object (in this case a strawberry). Can anyone help me with how I could make it so if my player touches a bomb one heart disappears and if my player touches a strawberry one heart reappears ?? (This post is genuinely my last try, I have looked all over the internet ho
I'm new
By H_Ebb741, with 2 replies.
Last reply by unathimasina326@gmail.com, 3 months ago:
I’m here for my coding and robotics project I’m in grade9
how to share to jar
By john_hackermann, with 1 reply.
Replied to by danpost, 4 months ago:
john_hackermann wrote...
soo i want to export a project to jar but the applecation tab isnt existent
In my version of Greenfoot, that action is performed via the
Application
tab upon clicking
Share
.
1
2
3
4
X