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
Pls help me !!!
By chung1998, with 1 reply.
Replied to by danpost, about 9 years ago:
Open up the editor for the class (double click on class or right click and select 'Open editor'); then, add code to 'act' method.
Repost: Greenfoot not working since about 4 days ago
By LakeOtis, with 6 replies.
Last reply by LakeOtis, about 9 years ago:
danpost wrote...
LakeOtis wrote...
I don't understand. Should I remove <Code Omitted>?
No. You need to remove: <Code Omitted>The third line from the top of the class. It starts a multi-line comment which does not end until the '*/' on line 10, which makes the class declaration line, <Code Omitted>a documentation line instead of a line of code the compiler needs to look at.
Thanks, I hope it compiles Edit: IT WORKS! THANK YOU!
actor chasing actor program HELP
By Classydiamond74, with 2 replies.
Last reply by Classydiamond74, about 9 years ago:
ok thanks for the help will try it out
Help with finding the fault
By Lars2501, with 2 replies.
Last reply by Lars2501, about 9 years ago:
Thanks I did it
Int method's syntax incorrect? What am I missing?
By alittle_bit, with 3 replies.
Last reply by alittle_bit, about 9 years ago:
Thank you for the replies Hippo & danpost! I will remember to return the value given by the method if I am creating an int, boolean, etc, in future then.. On another note, the method was removed and the randomised position was achieved through placing the 'getRandomNumber()' method inside the 'addObject()' method. As always, I appreciate the hard work you do supporting others danpost, thanks for the thought put into other ways I could achieve my goal too and thanks hippo for the straightforward and clear reply too!
Beginner. Why isn't this working. Add new object
By pla97, with 2 replies.
Last reply by pla97, about 9 years ago:
Oh, ok. Thanks,
Character Customisation Button
By JollyMonSam, with 1 reply.
Replied to by danpost, about 9 years ago:
JollyMonSam wrote...
How would I code a button so when it's pressed it changes the skin tone of the character up or down according to the current skin tone?
What have you tried? What do you think will be involved?
Need help saving world instances when moving to new worlds
By CSnoob, with 3 replies.
Last reply by Super_Hippo, about 9 years ago:
Alright. Btw, line 15 doesn't do anything since you are doing the same thing in the next line again. And if you change the 'coastalFrame' in line 16 to 'this', you can also remove line 10 ;)
Have a Problem with my Script :/
By H0ly1812, with 2 replies.
Last reply by H0ly1812, about 9 years ago:
Ok it works thanks
What is the selution
By Lars2501, with 8 replies.
Last reply by Lars2501, about 9 years ago:
thanks dan it worked!!!
Counter help!
By lostcoder21, with 1 reply.
Replied to by danpost, about 9 years ago:
Please show the 'counter' field declaration line in the Background class.
How to create an image from clicking a button in one world to another
By Kieranwilko98, with 7 replies.
Last reply by Kieranwilko98, about 9 years ago:
Danpost your a living legend, not all heros wear capes
how to make a swing object?
By williandutras, with 3 replies.
Last reply by danpost, about 9 years ago:
You probably need to double the width or height of the image for the rope. Try this in the Rope class constructor ('public Rope()'): <Code Omitted>This will work if the image of the rope at zero rotation is hanging straight down. The code takes the original image and draws it on an image frame that is twice as tall, moving the point of rotation to the top of the original rope image.
The game does not what I want.
By Lars2501, with 6 replies.
Last reply by Lars2501, about 9 years ago:
Thanks a lot bro you helped me a lot there
how find the wombat the leafes and move to them ?
By BoZZWombAT, with 1 reply.
Replied to by Super_Hippo, about 9 years ago:
There are several methods in the Actor class which you can use
(see here)
. If there is only one leaf, it could look like this:
422
423
424
425
426
427
428
X