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
Error at getWorld().addObject(new Tail( r, g, b)); help
By 4ldRg, with 9 replies.
Last reply by danpost, almost 3 years ago:
4ldRg wrote...
code of class tail << Code Omitted >>
Ah. Try: <Code Omitted>
how add text from different world?
By mariq_rasyid29, with 5 replies.
Last reply by mariq_rasyid29, almost 3 years ago:
roger that sir
cant add object after it is removed
By MerkurySol, with 2 replies.
Last reply by danpost, almost 3 years ago:
<Code Omitted>
Programming a car
By jdkdoen05, with 1 reply.
Replied to by danpost, almost 3 years ago:
The
left
and
right
arrows to turn,
up
to accelerate and, although I didn't test it well,
down
is probably to decelerate. I cannot tell what mechanism controls the drag off the track, but possibly background color testing or maybe the center of the track is expressed in formulas and deviation from the center by a specified amount will trigger the drag. Being the track curves are not very clean cut, I would presume the former of the two ways.
Creating Boundaries in Greenfoot
By Ronan444, with 7 replies.
Last reply by danpost, almost 3 years ago:
Use the following move method: <Code Omitted>
can someone tell why my program not running on how it supposed to run
By divinity, with 10 replies.
Last reply by divinity, almost 3 years ago:
hi danpost, yes I see my mistakes there, thanks for pointing that out to me, is there anything that i miss
help idk what the mistake is
By mariq_rasyid29, with 4 replies.
Last reply by mariq_rasyid29, almost 3 years ago:
ok thx sir for help
Preventing website to compile a class
By Roshan123, with 7 replies.
Last reply by danpost, almost 3 years ago:
Roshan123 wrote...
I just want to show how my scenario works, but the packages in Saver class is preventing it to show it in website. So I m thinking that any method which will only delay the compilation in Saver class only or any other method which will work without awt and swing package and it will behave as same as the before one. Hope u understand what i mean to say
Well, for one thing, you cannot write to a file on the website for security reasons. So, I guess the best you could do with that class is to comment out the method and the importing of java.awt.BufferedImage. I do
Instruction Menu
By tomzz, with 1 reply.
Replied to by danpost, almost 3 years ago:
Make the following your initial world. Set its background image to a title screen. <Code Omitted>Have an
Instructions
world for this to go to when the scenario is started ("Run" button is clicked).
Actor touching another actor
By xixEmilyxix, with 27 replies.
Last reply by xixEmilyxix, almost 3 years ago:
danpost wrote...
Transparent background is still considered actor image and will be included in collision. That is, if the bee touches any part of the image of a flower, transparencies included, a collision is determined to have occurred.
ahhh right, ive done that with my bees aswell. Ill change both of them and hopefully it will be working properly - thank you for the help
How to draw a colorfull image after converting it into grayscale image?
By Roshan123, with 3 replies.
Last reply by danpost, almost 3 years ago:
Roshan123 wrote...
So is their any easy way to solve the problem?
Nothing easy. And anything that would be half usable would limit the pallet of colors used in the re-colored image.
Trying to remove an Object once its touched 3 times.
By tomzz, with 9 replies.
Last reply by tomzz, almost 3 years ago:
This works perfectly!! Thank you! Makes sense :)
When actor clicked a counter increases by one
By xixEmilyxix, with 36 replies.
Last reply by danpost, almost 3 years ago:
xixEmilyxix wrote...
Theres no actors above the buttons at all, the only other actors in the world are the bees, the hive and the flowers
Try adding the following line into your
BeeWorld
constructor: <Code Omitted>
lag in wheel of fortune class
By Roshan123, with 5 replies.
Last reply by danpost, almost 3 years ago:
Roshan123 wrote...
tell me how do manage to make ur every program reusable?
By keeping all behaviors and states of an object type in their respective classes. Let the world control the game/scenario without getting involved with any actors not specifically created for the world to control. On the other hand, do not have actors try to control the overall running of the game. Interactions between two type actors should be coded only in one of the actor's classes -- preferably, the more "major" one of the two types.
what are the things u hate in my programming skills?
Won't upload to Website.
By nili3000042, with 5 replies.
Last reply by nili3000042, almost 3 years ago:
yep, seems like it
44
45
46
47
48
49
50
X