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
java.lang.OutOfMemoryError: Java heap space
By GRIFFIN, with 30 replies.
Last reply by GRIFFIN, over 12 years ago:
Ok I got it to work finally. Thanks for all the help!
Help with getObjectsInRange()
By SAAEngineer, with 1 reply.
Replied to by SAAEngineer, over 12 years ago:
Help pleas
Tic Tac Toe Random Corner Method not Random
By JasonZhu, with 6 replies.
Last reply by JasonZhu, over 12 years ago:
I will. Thanks davmac. I know that its more of an internal error rather than wrong coding on that specific practice.
Game of Life Iteration Trouble
By JasonZhu, with 6 replies.
Last reply by JasonZhu, over 12 years ago:
Thank you for your suggestions. I understand it now. And thanks for a simpler method, I didn't realize that it took that much room until you pointed it out.
Declaring a color variable
By Peach, with 4 replies.
Last reply by davmac, over 12 years ago:
Don't do this: <Code Omitted> Just do this: <Code Omitted> The first example just creates an extra object needlessly.
Game Developer!!!
By Rishav_Agarwal, with 4 replies.
Last reply by Rishav_Agarwal, over 12 years ago:
Thnx for help!!!
Problem with animation and move!? pls. help
By Prish950, with 9 replies.
Last reply by Prish950, over 12 years ago:
Thank you !! <3
How do I submit a scenario?
By connorholmes, with 1 reply.
Replied to by danpost, over 12 years ago:
There is a Share button near the top right corner of the greenfoot pane (above the classes panel). Click it, fill in your info, and 'Share' it.
Test 3
By jesper2411, with 1 reply.
Replied to by GRIFFIN, over 12 years ago:
Wonderfull
Star Wars Game
By BeYouself, with 3 replies.
Last reply by danpost, over 12 years ago:
danpost wrote...
Introduce an instance field 'private int health = s*50;' where s is the lifespan of the actor in seconds. In the act method, subtract one from its value and check for zero (death).
An example of this follows for an actor that lives for about 10 seconds: <Code Omitted>
Trouble using getObjectsInRange
By kdbailey, with 3 replies.
Last reply by danpost, over 12 years ago:
Well, I would presume that an enemy will not attack anything behind it, only in front of it. So when it attacks, if the absolute value of the differences in their rotations is 180 than the enemy dies.
Coding a ramp?
By Entity1037, with 17 replies.
Last reply by Entity1037, over 12 years ago:
I have pinpointed the problem. The issue only happens when the player's code setsLocation more than once per cycle. It appears that it does has something to do with the interaction of the player setLocation from the player itself with the setLocation of the scrolling engine. I can, however, work around this issue by adjusting the height of the player's image and just moving that instead of the player (which I probably should of done in the first place, honestly).
Test 2
By jesper2411, with no replies.
<Code Omitted>
Test
By jesper2411, with no replies.
<Code Omitted>
Why is my character flying across the screen???
By GP2, with 2 replies.
Last reply by GP2, over 12 years ago:
Thank you so much! Your advice worked and I changed my class name to player to avoid complications . Again thank you
686
687
688
689
690
691
692
X