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
play and stop buttons for jukebox project
By Alucard, with 2 replies.
Last reply by danpost, over 10 years ago:
Maybe you should have a 'public static Button playButton;' field and when the appropriate value (-1) is passed to the constructor, have the field set to 'this' object being created. Also, a 'public static' array of the "play" and "pause" images might help for later comparisons so the individual song buttons can do what needs to be done with it at the appropriate times (to check which image the playButton is currently showing and act accordingly).
Making a Memory Game
By carter, with 46 replies.
Last reply by carter, over 10 years ago:
danpost, thank you so much for all your help. I wouldn't even be close to being done if it wasn't for your help. I turned the project in and will keep you posted about the grade I get (if you would like). :)
bad operand types for binary operator
By divinity, with 3 replies.
Last reply by danpost, over 10 years ago:
The gross_salary field used on line 40 is never assigned any value. The overtime variable is not used after assigned a value at line 36. The hrs field is only assign a new value (default is zero) if the hours worked was exactly 40. A consequence of this might show some other issues. Let us say that the first employee worked exactly 40 hours and the hrs field is assigned its proper value. Then the next employee, who did not work 40 hours, will not re-assign a new value to the field. The value will remain what it was for the first employee. Certainly, this cannot be what you would want.
Balloon-Popping Game
By IronRod, with 40 replies.
Last reply by IronRod, over 10 years ago:
Thank you so much @danpost, I really do appreciate all the advice you have given. My game works fine now. ;)
Out Of Memory error on compile
By trimil, with 5 replies.
Last reply by trimil, over 10 years ago:
Nah, I like using the reflect classes.
moving actor one given location and go to another
By NIRO17, with 21 replies.
Last reply by danpost, over 10 years ago:
NIRO17 wrote...
danpost, have you heard about multi agent technoly in Ai? can we use greenfoot gaming platform to develop a multi agent simiulator? can we apply JADE or MadKit like libaries to work with greenfoot?
You can use greenfoot to do pretty much anything you can do outside of greenfoot. The documentation for native libraries is
here.
Scrolling world
By GB309, with 50 replies.
Last reply by danpost, over 10 years ago:
GB309 wrote...
THANKS
danpost wrote...
... (code acquiring x-coordinate value shown here). < Code Omitted >
Wow -- did I do that??? More simply coded would be this for the third line: <Code Omitted>
multi agent with greenfoot
By NIRO17, with no replies.
have you heard about multi agent technoly in Ai? can we use greenfoot gaming platform to develop a multi agent simiulator? can we apply JADE or MadKit like libaries to work with greenfoot?
how do you make an object be removed and start game all over again when touching another object?
By LEmaestro, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
<Code Omitted>
Object don't spawn in scrolling world
By TheBigBossJoshi, with no replies.
Hi! I am working on a project, but I have hit a bump in the road. I have created a scrolling world, but nothing other than my Platform and Wall classes spawn past the first screen. I have spent way too long on this, and I need help. Here is my world class and my scrolling classes. WORLD: <Code Omitted> WORLD SCROLL (ACTOR) <Code Omitted> OBJECT SCROLL (ACTOR) <Code Omitted> What am I doing wrong?!
multi agent
By rosh11, with no replies.
how can I add multi agent to my greenfoot project?
Making Tetris; Need help with blocks
By nathanathan, with 5 replies.
Last reply by nathanathan, over 10 years ago:
Alright, sounds good. Thank you for you help! (I like the use of the word Tetrominos :] )
How to make obstacle change alternately?
By HakimRizki, with 1 reply.
Replied to by danpost, over 10 years ago:
HakimRizki wrote...
I mean my game project has gameplay like Dinosaur Google Chrome Please help my problem
Unfamiliar with DGC, please elaborate.
NullPointerException
By LifeAchemist, with 1 reply.
Replied to by danpost, over 10 years ago:
Will need to see the code (not just the error line, but, at minimum, the method that the error occurred in).
moving
By mellotelli45, with 5 replies.
Last reply by danpost, over 10 years ago:
NU22 wrote...
I used this code and it does not work, gives me errors such as illegal start of type and missing semicolons. Has there been an update to Greenfoot that makes this no longer work?
The only issue I see with the code is that in the last line 'geX()' should be 'getX()'. Other than that, it should work. Maybe you should post the code of the class you are trying to use it in. Seems to me that your errors are more general in nature.
470
471
472
473
474
475
476
X