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
Using enum in greenfoot
By Atlantiz, with 1 reply.
Replied to by davmac, over 11 years ago:
-Xdiags:verbose is a compiler option. Greenfoot doesn't support setting it, so for now you should just ignore it. I believe you only get this when you also get error messages, so you should concentrate on fixing the errors and then this warning will also go away.
Advancing between scenes.
By BeYouself, with 3 replies.
Last reply by danpost, over 11 years ago:
BeYouself wrote...
Thanks a lot. Could you post the code for the Buttons discussion
I have a new BGMusic Actor support class for background music that I want to get out here. I just now got an idea of how I can demo it. I will work on it in the near future.
HELP!!
By molsbex, with 3 replies.
Last reply by danpost, over 11 years ago:
GRIFFIN wrote...
This is the collision code you will want to put in the spider: <Code Omitted>And you probably should specify the type of movement you are looking for.
Lines 1 and 2 above are reversed from what they should be.
getWorld Error
By kdbailey, with 6 replies.
Last reply by Super_Hippo, over 11 years ago:
If you want to do something over timer, you need an 'act' method. If you play at a 'normal' speed, this 300 will be about 5-6 seconds or something. If you want exactly 6 seconds, you can also use the milliseconds from the system which are unaffected by the Greenfoot Speed. But then, the game will be different if you change the speed. So I would suggest to just adjust the 300 to the value you want and try this code:
java.lang.OutOfMemoryError: Java heap space
By GRIFFIN, with 30 replies.
Last reply by GRIFFIN, over 11 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 11 years ago:
Help pleas
Tic Tac Toe Random Corner Method not Random
By JasonZhu, with 6 replies.
Last reply by JasonZhu, over 11 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 11 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 11 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 11 years ago:
Thnx for help!!!
Problem with animation and move!? pls. help
By Prish950, with 9 replies.
Last reply by Prish950, over 11 years ago:
Thank you !! <3
How do I submit a scenario?
By connorholmes, with 1 reply.
Replied to by danpost, over 11 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 11 years ago:
Wonderfull
Star Wars Game
By BeYouself, with 3 replies.
Last reply by danpost, over 11 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 11 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.
684
685
686
687
688
689
690
X