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
Greenfoot.start() when initializing world
By Zamoht, with 2 replies.
Last reply by danpost, almost 14 years ago:
It appears that might be a bug that you will not be able to correct. After hitting reset, I noticed that the 'Pause' button was present (which means the scenario should be running); however, I was able to drag-n-drop the menu options in the scenario (and I am sure that is not programmed into your scenario). BTW, I was using a downloaded version of 'Platforms of meh' @Greenfoot team, could you look into this please and inform as to what the problem might be -- thanks.
Global variables Incompatible types
By Dytanoth, with 4 replies.
Last reply by vonmeth, almost 14 years ago:
It looks like "playbutton difficulty" is never actually set to anything, so it is null. <Code Omitted> I don't think you are coding this is the best way. You might want to try coding it in the following way: When a "star" is pressed, it gets "menu" and then passes the difficulty to it, which then stores it. Star will simply have a way to detect a mouse press, and then a method to pass difficulty information on to the menu.
windows 8 compatibility
By spargol@nashua.edu, with 2 replies.
Last reply by spargol@nashua.edu, almost 14 years ago:
I finally got Greenfoot to download and work. I think my issue is a bad version of Windows 8. I am hanging in Internet Explorer constantly and I cannot get Google Chrome to work either. I am very frustrated with Windows 8. thank you for your quick response.
Need to find the book scenerios!
By myheartwillgoon, with 3 replies.
Last reply by davmac, almost 14 years ago:
No, the video tutorial is not the book, it uses different scenarios. In this case your link is to the teacher commentary which applies to the previous blog post, which also has a download link for the code:
http://blogs.kent.ac.uk/mik/2012/01/joc-classes-and-objects/
hello
By tribhuvan123, with 1 reply.
Replied to by mjrb4, almost 14 years ago:
Hi, have a look at the tutorials on the documentation page: http://www.greenfoot.org/doc
Isn't there anyone who can help me with the "Conway's game of life"?
By myheartwillgoon, with 4 replies.
Last reply by vonmeth, almost 14 years ago:
Sorry, I should of included that in my first post. The problem is with
overriding
. The GameOfLifeCell act() overrides the act() in Cell. It doesn't matter if the method is empty, it will still override it. You can see this overriding taking place as well with the applyRule() method.
Need Some Help Pt.2
By ddavid33, with no replies.
Hi, all im having a little problem, i wanted to create a game where the actor would have to pick up an object and drop it off in a finishing point. thanks to some of you i have now been able to create that. but now i want to put in a little challenge. I now want to add some obstacles in the way. at the moment it goes straight through it. what codes do i need to add. Thanks in advance.
Little Crab - Counting steps
By mborders7786, with 9 replies.
Last reply by mborders7786, almost 14 years ago:
@danpost, Not at all. I appreciate all the help I've had on here. Just don't think I have the gift of programming.
Hi friends! Need help!
By jabirfatah91, with 7 replies.
Last reply by vonmeth, almost 14 years ago:
Thank you danpost! I thought I'd try my hand at creating it and was able to make one from following the instructions you posted. If you use the code I copied in my first post, it will end up ignoring the bordering cells. Fixing it so you don't ignore the bordering cells requires making sure it doesn't cause ArrayIndexOutOfBounds exception. This proves easy when altering the code I copied above a bit to use a 'for' loop for checking the locals.
Mutliple random placements
By Wavesludge, with 29 replies.
Last reply by Wavesludge, almost 14 years ago:
Thanks!
Title screen won't run
By HadAWay, with 2 replies.
Last reply by danpost, almost 14 years ago:
Look closely at lines 190 and 191. Ask yourself, "What will be happening here?"; "Will this do what I need it to do?". By the way, 'removeObject' will not 'error' if the object is
not
in the world.
Unreachable statement?
By programmer274, with 13 replies.
Last reply by danpost, almost 14 years ago:
'int' code breakdown: <Code Omitted>Line 2 add an instance of that variable to all objects created within this class. Therefore any Enemy object created will have its very own variable to control the rate of damage. Line 4 runs the delay, if it is being used. If the delay time has expired, its value
Help with switching images
By programmer274, with 24 replies.
Last reply by programmer274, almost 14 years ago:
yes google chrome
An interesting question!
By jabirfatah91, with 4 replies.
Last reply by jabirfatah91, almost 14 years ago:
Danpost! Please have a look at my discussion I created recently. I always expect great help from you. I want to use the existing code I copied+pasted there, but I want to avoid using the Greenfoot library function getNeighbours(…) in the Actor class. Then how to edit the exixting code? i will be very grateful to you with instant response!
My discussion.
How to make a scrolling background wall
By KierTulp, with 6 replies.
Last reply by KierTulp, almost 14 years ago:
I just looked back at what I send earlier and i see that i havn't been clear enough, my actual problem is that when i keep the right key pressed, my player will stop, but the background will keep scrolling. I am looking for a way to make the background stop scrolling when my player hits a wall. thanks for the second tip btw, I was not really sure on how to make levels yet, altho I am not yet making levels with that tactic it will all go a lot easier!
914
915
916
917
918
919
920
X