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
New! Greenfoot 2.4.2
By davmac, with no replies.
We are pleased to announce the release of Greenfoot 2.4.2. The is purely a bug-fix release. The issues addressed are:
Startup time improved by 3 seconds (fixes regression introduced in Greenfoot 2.4.1)
Greenfoot.ask(...) method prevented later keyboard input from being accepted
Rare exception when one actor was left in the world
You can download the new release from the
Download
section.
Need help with 2D arrays
By xxX_Muffin.man_Xxx, with 2 replies.
Last reply by davmac, over 10 years ago:
I suggest nobody need to respond to this discussion, as unfortunately I've had to disable the poster's account due to their posting offensive material (in a separate discussion).
Secret Party
By Green_footlong_subway, with 31 replies.
Last reply by xxX_Muffin.man_Xxx, over 10 years ago:
i got roood bread skill
Chopped off image when rotated
By jimboweb, with 9 replies.
Last reply by jimboweb, over 10 years ago:
Oh, yeah, I should have thought of that. Rotate the actor instead of the image. I'll do it that way.
How to pause a specific actor rather than the entire game?
By zachfreeman, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
You can use a timer to pause the actor for a specified time. As an alternative, you can also use a boolean. <Code Omitted>
Enquiry
By Abanourmo, with 4 replies.
Last reply by Abanourmo, over 10 years ago:
Thank you for your help. the code has been fixed. I over thought it. I moved the code into the bird class; instead of keeping it in the food class.<Code Omitted> I put this code into the act, in my food class.
Game Problem: Spawining Bullets
By NoobCoder, with 7 replies.
Last reply by Super_Hippo, over 10 years ago:
Make sure you create your world with 'super(width,height,cellsize,false)'. The 'false' will make the world unbounded, so object can be outside the world boundaries. Then you could use that to create a bullet outside the world: <Code Omitted>Note: Bullets appear outside the world. If you don't rotate them to somewhere inside the world, they can fly (if they
Creating a Score Counter
By GabrahamCAPS, with 9 replies.
Last reply by GabrahamCAPS, over 10 years ago:
danpost wrote...
Again, the Counter object in the world is not the one the Fish uses. You create one on line 11 and a different one on line 15.
Nevermind, I see what you were saying. I have no idea why I created a second Counter when adding an object. I think it was because I wasn't understanding the code. Thank you so very much. I appreciate it. Thanks for bearing with me. I changed line 15 to just say "counter" and not "New Counter()"
java.util.ConcurrentModificationException what is this ? and how can I work around it
By fejfo, with 11 replies.
Last reply by fejfo, over 10 years ago:
ow I'm so stupid I knew u needed it
Null Pointer Exception Error
By Tommy99, with 6 replies.
Last reply by Tommy99, over 10 years ago:
Oh, okay. It worked perfectly! Thank you both very much!
Pausing movement when there's one equal actor.
By joandvgv, with 112 replies.
Last reply by joandvgv6, over 10 years ago:
Wow. Thank you so much for those explanations. Really really helped, since this is my first time programming in Java and I decided to use greenfoot, there are a lot of things that are a bit difficult to understand like reference fields and so, now I understand more about this stuff.
joandvgv wrote...
Take a look at my scenario
I don't want that to happen. What do you suggest? The thing about 180 rotation when its sense is up all over the scenario works. But when its sense is down, it does not. What do I need to change?
This is what I previously p
My program was working, and all of a sudden it slowed down and gave me Java heap space errors.
By nbarrell, with 3 replies.
Last reply by fejfo, over 10 years ago:
if your reading from fillies make sure u close the as well!
problem with good gravity/collision detection
By fejfo, with 3 replies.
Last reply by fejfo, over 10 years ago:
thanks!
Can you help me Encrypt and Decrypt text like Caesar Cipher
By coder04, with 41 replies.
Last reply by coder04, over 10 years ago:
t
Help with Blackjack game
By 1920, with 1 reply.
Replied to by danpost, over 10 years ago:
Write an outline of the events that are to take place. Then build your act method of the world based on that outline. Do not worry about what code needs to go in supporting methods for now. Just work on the act method calling methods that are to do certain actions. For example:
594
595
596
597
598
599
600
X