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
boolean not changing
By bonyay, with 2 replies.
Last reply by bonyay, about 9 hours ago:
danpost wrote...
For example, all "Dock." instances in your
FishShad
class codes can be changed to "((Dock)getWorld())." to access them without them being
static
.
Thank you so much for your help so far, I'm sure I'm much further along than I was before but I am still having some problems. (I knew nothing about non-static booleans before today) Luckily i solved errors with the help of reading past threads, but I am back to my original problem being that the "catch" code that relies on rodLow being true is not executing, and only the one with rodNo=true is. This time
How do i make a Project to .jar
By Zildrion, with no replies.
Why did the feature get removed and how do i do it now? :(
enemy help!
By An0n_N0mad14, with 10 replies.
Last reply by An0n_N0mad14, 2 days 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, 2 days 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, 2 days 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, 7 days 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, 7 days 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, about 1 month 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
.
timer issue
By Haelena, with 1 reply.
Replied to by danpost, about 1 month ago:
Haelena wrote...
I want to use an int timer for jumping animation (see the example of wished result in jabka.wip on my page, precisely on the jump to the left (I used delay() there, which now I want to avoid). However, the timer doesn't work at all. Any ideas of how to fix it? << Codes Omitted >>
It seems you have coded an entire jump into one act step. You have coded the act method too generally. It needs to provide what needs to be done at any one moment. A jump command (by keyboard activation) should start a jump. The jump must be controlled through multiple act steps. You may
Pulling the Code for my Game
By HaloToxin, with 1 reply.
Replied to by danpost, 2 months ago:
HaloToxin wrote...
Hi there! I'm coming back to Greenfoot after 13 years to try to get my game IceFisher to a working state, and I wanted to see if I could pull the project from the site down to my local. Is there a way that I can do that?
You apparently made the code available when you uploaded the scenario. Just go to the scenario page and click on the big green link (under your user image) that says "Open in Greenfoot". Move the downloaded folder to your 'scenarios' folder, open greenfoot app and select it (the downloaded folder) to open. Your original scenario folder should then
How do i make it so the player kepts their horizontal velocity when they were moving on the ground, but cant change horizontal velocity midair?
By JosukeHigashikata, with 3 replies.
Last reply by danpost, 3 months ago:
JosukeHigashikata wrote...
I did try that, but it didnt work and im not sure what is wrong heres my code for the characters: << Codes Omitted >>
Maybe you should take a look at the codes in my
Jump and Run Demo w/Moving Platform
scenario. You can run the scenario and look at the codes from within it (buttons along bottom of scenario window while running it).
is anyone dealing with cacert nonsense
By john_hackermann, with no replies.
i hate when it gives the nonexistent cacert nonsense, is this normal
creation
By zay_knight28, with 2 replies.
Last reply by TheMusteryMan, 4 months ago:
there are some tutorials on Youtube aswell
I am trying to make a kill counter but it resets every time a new bullet spawns.
By HelpAccount2, with 1 reply.
Replied to by danpost, 5 months ago:
It would help if you documented the classes with comments to indicate what each code set does. Also, it is hard to tell which counter you are referring to. The
Plane
class codes might be needed as well, since some variables seem to be defined there.
A minimal re-implementation of GF in JavaScript
By andrea270872, with 2 replies.
Last reply by andrea270872, 5 months ago:
The link is here: http://andval.net/Greenfoot_JS/index.html
1
2
3
4
X