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
How to download the scenarios?
By AbidaKhan, with 1 reply.
Replied to by danpost, about 12 years ago:
You cannot download any scenario that does not have the "Open in Greenfoot" button. The owners of those scenarios chose not to include the source code with the uploading of them to the site. My Jump and Run Demo scenario which you commented on does allow you to view the source (without being able to download it directly), however. Just run the demo and click on one of the buttons along the lower edge of the window.
Strange... (code below)
By jogit666, with 2 replies.
Last reply by jogit666, about 12 years ago:
Thanks!
Launching a scoreboard after a collision
By Ben&Sam, with 2 replies.
Last reply by Hersov, about 12 years ago:
Hello, I am also wondering about this but im spanish so I dont understand any english code, muchos gracias.
Help with fine tuning enemy
By rrose5, with 14 replies.
Last reply by rrose5, about 12 years ago:
Cool I edited that part now.
[Urgent] How to use Test Driven Development for Greenfoot - Greenfoot Noob
By vked_coder, with 6 replies.
Last reply by danpost, about 12 years ago:
Maybe adding functionality to add methods and classes automatically when double-clicking on an undefined name might help. The compiler will point out anything missing and you can always use 'System.out.print' to put results of tests to the terminal. It would not be a bad idea to add the aforementioned functionality; but, do not hold your breath (it would only save re-typing the name of the class; unless it put in the arguments as well). Also, this site is designed for beginners, and adding TDD would take away from the benefit of one coding the classes or methods themselves. I myself do n
Calling UserInfo without lag
By Super_Hippo, with 4 replies.
Last reply by danpost, about 12 years ago:
Yes, the storing and retrieving of UserInfo objects (accessing the database) is the main cause of lag. Once you have a reference to a UserInfo object, getting and setting the fields is like that of any other object.
Level Variable
By DarkSoulDemon, with 6 replies.
Last reply by DarkSoulDemon, about 12 years ago:
danpost you are a LEGEND THANK YOU
How do I stop a method from running
By DarkSoulDemon, with 5 replies.
Last reply by DarkSoulDemon, about 12 years ago:
okay Thankyou i was not sure if it was the fact i kept calling the method and that is why it could never get past level2 Thank you very much to the people who helped
If (addedToWorld... ?
By nivilom86, with 9 replies.
Last reply by nivilom86, about 12 years ago:
OK thanks !
How many ticks per second?
By TehRyan, with 2 replies.
Last reply by TehRyan, about 12 years ago:
Yes i believe thats what i meant, sorry for my lack of proper terms lol!! Its hard for me to interpret what im trying to say XD And thanks for the Play loop, ill make sure to use that in a future project!
Pressing three arrow keys, third arrow key doesn't do anything
By TurboLover004, with 2 replies.
Last reply by TurboLover004, about 12 years ago:
Can only press two arrow keys at once; I guess I'll use WASD from now on. Thanks for clearing that up, Danpost.
Greenfoot development request
By Game/maniac, with 4 replies.
Last reply by Game/maniac, about 12 years ago:
Ok
Null Pointer while creating World
By S02, with 19 replies.
Last reply by S02, about 12 years ago:
Thanks it resolved. Alos thanks for keeping patience and explaining so well, a am new to greenfoot but now loving to work on it.
How do you make an Actor jump onto groun or platform
By coder04, with 1 reply.
Replied to by Super_Hippo, about 12 years ago:
Use the 'code' tags to post code! Then it looks much better and I could refer to line xy. In your 'checkFall' method, you check for a 'Road', but not for a 'Platform'. Change the if-condition in this method to <Code Omitted>
help me...
By rakesh8015, with 9 replies.
Last reply by danpost, about 12 years ago:
First, if you are checking for clicks, you should be using 'mouseClicked', not 'mousePressed'. Second, you will need an instance field (either boolean or int type) to change its value of when the first click is detected. Your detections will need two conditions each using the value of the field and detecting the click. After the second click, is the functionality supposed to revert back to its original state (where the next click will print "First click execution" to the terminal again)?
652
653
654
655
656
657
658
X