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
test for an object's location
By rn42v1r, with 4 replies.
Last reply by rn42v1r, over 8 years ago:
Ah ok. I noticed that, just was curious about the "list" thing. Thanks again
Help with storing values into an Array of an object to be used by another class
By Asiantree, with 22 replies.
Last reply by Asiantree, over 8 years ago:
I also have a button sub-class, so I am not sure if I should take that into consideration when working with the button. Here is the main ToggleButton class:
HEALTH BAR
By kursatA, with 1 reply.
Replied to by danpost, over 8 years ago:
kursatA wrote...
can someone help me create a health bar for my cannon, needs to be hit 3 times to disappear and then 'game over' screen. anyone?
Please see my
Value Display Tutorial
scenario.
Wheres my error?
By ali18, with 19 replies.
Last reply by ali18, over 8 years ago:
Sorry, i just wanted to ask something else. Do you know i am able to make my bullets disappear when it hits the rockets and also make an quick explosion??<Code Omitted>This is the code in my plane
getNeighbours help.
By Reny, with 1 reply.
Replied to by danpost, over 8 years ago:
The 'getNeighbours' method is more for gridded world (worlds that have a cell size greater than one where actors
usually
fit inside one cell). The 'getObjectsAtOffset' method might work a little better (in fact, you can use it four times to check on all four sides of the actor). If I read the instructions you gave correctly (presuming that the wording is correct), then you need to use at least two "List" methods (like 'get(int)', 'isEmpty()' and 'size()', to name a few methods that could be used).
Creating a world with resized images
By alittleteacher, with 5 replies.
Last reply by danpost, over 8 years ago:
You can scale the image to size before the world is created; however, you would need to use static content and it will happen during compilation of the project (before any World object is created): <Code Omitted>
How to get/call method from touching object
By Casper, with 2 replies.
Last reply by Casper, over 8 years ago:
Thanks
A counter that always goes up
By BrianOK, with 3 replies.
Last reply by Xmin_Terminator, over 8 years ago:
I said I don't know much about greenfoot, and I just said danpost because he has helped me a lot, just trying to share what I know, sorry for what I got wrong.
Help with error! (World Switching)
By KimoDev, with 1 reply.
Replied to by danpost, over 8 years ago:
If there is only one healthBar object in each of your worlds, then you can change lines 21 and 22 of the Meteorite class to this: <Code Omitted>You can do similarly to lines 15 and 16 of the Ball class if you only have one Counter object in each of your worlds.
How do i make a delay when shooting
By Ozan31, with 2 replies.
Last reply by Ozan31, over 8 years ago:
Thanks for that, i appreciate your help.
Coordinates from another class
By Benni, with 1 reply.
Replied to by danpost, over 8 years ago:
Use the 'getObjectsInRange' method: <Code Omitted>The above line will have its block of code execute if any are in range.
How to set up a currency class and counter?
By Alola_Sandslash, with 3 replies.
Last reply by danpost, over 8 years ago:
Alola_Sandslash wrote...
Yeah but I don't know which methods would be the cleanest. Also I am having trouble calling methods from other classes, is this necessary?
Not if you keep everything about the currency in your world class and use a simple actor object to display the currency. Please refer to by
Value Display Tutorial
scenario.
IllegalStateException: Actor not in world regarding three objects
By MarktheBrit, with 2 replies.
Last reply by MarktheBrit, over 8 years ago:
That works, thanks a ton!
how to stop this code when my actor dies
By BrianOK, with 1 reply.
Replied to by danpost, over 8 years ago:
Need to see all the codes from where 'addScore' is being called from.
How to switch levels after its over?
By kursatA, with 11 replies.
Last reply by kursatA, over 8 years ago:
you're*
355
356
357
358
359
360
361
X