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
NullPointer problem
By bilzard, with 5 replies.
Last reply by danpost, over 12 years ago:
You could just pass the muntBrons size in with the score to the constructor. Then the class would simply be:
Problem in coliding with correct answer
By samarthj, with 2 replies.
Last reply by samarthj, over 12 years ago:
Thanks a lot for quick revert and help yes it solves the problem. Highly appreicate your quick revert.
ArrayList is not adding up
By bilzard, with 2 replies.
Last reply by bilzard, over 12 years ago:
Hey danpost, Thanks for the help! It works now! I had a NullPointerException, but after some troubleshooting I forgot to add this: <Code Omitted> Thanks again for the help. :-)
Greeps
By babygirl03, with 1 reply.
Replied to by danpost, over 12 years ago:
You can use it. However the Creature class will ignore the argument and no change will occur in the speed of the greep. Use 'move()', 'move(1)', or 'move(5)'; it will not matter. I suggest you just use 'move()' -- it will not make it look like you were trying to cheat (whether you were or not).
actors follow actors
By makinetion, with 3 replies.
Last reply by danpost, over 12 years ago:
One problem is that an Arm object is not a Player object -- only a part of one; and, therefore, Arm should not extend Player. Better might be fore Arm to be an extension of Actor as an inner class of player (written within the Player class). But I suggest that you leave it as just an Actor subclass of its own; unless, you understand the workings of an inner class. Pass the Player object that the arm belongs to in the constructor of the Arm ( 'new Arm(playerObjectName)' ) and have the Arm constructor save it in an instance field to use to get its location.
Change Images permanently causes massive lag
By Midas97, with 7 replies.
Last reply by Midas97, over 12 years ago:
Thanks. It worked! Now my game is almost complete but the HPBar doesnt work when the player looses or gets HP: Player:
how to change a image when turning
By nc-munk, with 10 replies.
Last reply by danpost, over 12 years ago:
Super_Hippo wrote...
I think in line 7, it should be + instead of -.
You are so correct. I missed that when copy/pasting original code post and editing. Thanks.
Help with moving objects into the middle of the screen
By kasperk22, with 4 replies.
Last reply by danpost, over 12 years ago:
Use an instance int field, or two, for a timer, and a minute counter. Each time the timer reaches about 3000, increment the minute counter and reset the timer back to zero. Use the minute counter to regulate the spawn rate (spawningCountPerMinute = 10+minutes*3). You can use 'if (timer%(3000/spawningCountPerMinute) == 0)' to spawn.
Help with accessing variables between actors
By Volatile_Matter, with 1 reply.
Replied to by danpost, over 12 years ago:
Here
is a how-to on that. Couple of things, however:
I do not see where your smiley images are being assigned values in the Indic class
There is no use for line 35 in the TurdleWurdle class ('int counter = 0;')
SIDENOTE: could you not just use 'getWorld().getObjects(TURDLE.class).size()' to get the number of TURDLE objects in the world (instead of using the 'oneup' field; or, to assign it, as a variable, the value while being declared in the method locally)?
Greenfoot.getMouseInfo().getX() issues
By makinetion, with 4 replies.
Last reply by makinetion, over 12 years ago:
Got it working, thanks danpost
Changing the order of world creation
By makinetion, with 4 replies.
Last reply by makinetion, over 12 years ago:
Got it, thanks.
Help with sound
By kasperk22, with 11 replies.
Last reply by danpost, over 12 years ago:
I was thinking something like this:
Working on the same Document
By AIMrOrange, with no replies.
Hello, I want to work on a Greenfoot Project together with a friend. Im lookin for something similar to google docs or some platform where you can write together. Otherwise it`s really annoying to always share the latest version, discuss changes and so on :/ Can anybody help me?
Executables dont work (anymore) ?!
By elias.groll, with 2 replies.
Last reply by elias.groll, over 12 years ago:
they are saved to the default directory so i think ist greeenfoot's project folder. Do u think ist because theese files arent associated with java by greenfoot? Because the eclipse-packed jar i had for other projects were able to run anyway..
Marking a rectangle
By Mkheo, with 5 replies.
Last reply by Game/maniac, over 12 years ago:
YAY! TEST
704
705
706
707
708
709
710
X