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
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 9 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 9 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 9 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 9 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 9 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.
Closeing the game
By Tamas, with 4 replies.
Last reply by Tamas, over 9 years ago:
Thank you!
Get Location from an other Actor
By schepieli, with 18 replies.
Last reply by danpost, over 9 years ago:
"mine detection task" is not familiar to me. However, you will probably need to have the third actor store the location of or a reference to the actor it needs to go to. Which depends on where you want the actor to go -- to the location of the actor is at when the first one reached it or to wherever that actor may be by the time the third actor gets to it. A method to set the field or fields would help. The first actor will need to get or retain a reference to the third one, so the coordinates or actor can be passed to the third one. It may be possible to avert using these fields if only
Illegal State Exception error help
By StoveAteMe, with 5 replies.
Last reply by davmac, over 9 years ago:
rosh11, please start a new discussion topic. You have posted a message in a completely unrelated topic.
Moving an Object When Touching Another
By CuddlySpartan, with 14 replies.
Last reply by CuddlySpartan, over 9 years ago:
Awesome thanks a ton! Its working perfectly :D
Getting Actor to stop at Wall?
By BOBBIE123, with 1 reply.
Replied to by danpost, over 9 years ago:
Lines 10 through 30 deal with moving upward. Lines 31 through 40 deal with downward. There is no code to deal with moving left or right as yet. They would be coded somewhat similar to the upward, hitting platform code.
Need help!!!!! Quick!
By AMiscool, with 6 replies.
Last reply by danpost, over 9 years ago:
CuddlySpartan wrote...
< Code Omitted > That code will spawn the food approximately 10% of the time.
That would produce about 5 or 6 foods per second -- way to quick when what is wanted is one every 3 to 4 seconds. The first line generating the random number should be more like this: <Code Omitted>which would average one ever 3 to 4 seconds. At times, however, It would occasionally spawn 2 or 3 food almost instantaneously or maybe a wait of up to 7 or so seconds between spawnings. Better would be to reduce the random range and add a minimum
Moving background
By PiggyPiglet, with no replies.
Im trying to make a racing game and i need the road in the background to move vertically. I have absolutely no idea how to do this.
469
470
471
472
473
474
475
X