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
How to pass variable from one class to another?
By pavolbiacko2002, with 1 reply.
Replied to by danpost, over 6 years ago:
pavolbiacko2002 wrote...
I need to pass a variable from one class to another.
Cannot help fix unknown codes. Show class codes (both sending and receiving the value) showing some attempt and point out exactly what you are trying to pass both from and to.
how to find a project page
By DIA, with 1 reply.
Replied to by danpost, over 6 years ago:
DIA wrote...
Can some one explain how to download a lesson, no such link i could find on this website
There is a section called
Tutorials
you can get to via the
Documentation
tab above. I hope that is what you mean.
Spawning Coins in Game (Issue)
By s1802055@online.houstonisd.org, with 4 replies.
Last reply by s1802055@online.houstonisd.org, over 6 years ago:
Thanks
Modos de juego
By Joglacraft, with no replies.
¿Disculpen, me gustaría que me dieran ideas para el juego "little crab" por favor.?
finish scenario
By Fuph, with 21 replies.
Last reply by Fuph, over 6 years ago:
Have a nice christmas and new years eve!
scenarios for greenfoot 3.5.4
By Sara, with 1 reply.
Replied to by danpost, over 6 years ago:
It may be a matter of just removing: <Code Omitted>from any and all classes. Any <Code Omitted>lines should also be removed. Beyond that, we would have to deal with each error individually.
Help
By MagickCZ, with 1 reply.
Replied to by danpost, over 6 years ago:
MagickCZ wrote...
I keep getting "not a statement" << Code Omitted >> Its on the ((MyWorld) getWorld().addAsteroid();
You are missing the closing parenthesis for
(MyWorld)getWorld()
Turning to Mouse but with an Radius
By Valstrax, with 7 replies.
Last reply by Valstrax, over 6 years ago:
Thank you.
Need Help Shooting "bullet" at hero!!!
By LightningFast, with 6 replies.
Last reply by danpost, over 6 years ago:
LightningFast wrote...
Q1: idk i kind of just have it as an acter right now, but i could just put it in the enemy class
Does not have to be an enemy class, especially if it is just the world shooting the bullets.
Q2: noo, i want it to detect the actor’s location and move towards it when the int spawn mod 60 == 0 (in the MyWorld). So basically multiple bullets are being shot at the hero and the main goal of the game is for the hero to avoid it go to certain location at the same time. Right now my main problem is shooting bullets at the hero :(
Show world class codes (ent
trying to get the X and Y of every object
By Yodats, with 4 replies.
Last reply by Yodats, over 6 years ago:
Thank you really much danpost
getOneIntersectingObject problem
By Fuph, with 7 replies.
Last reply by Fuph, over 6 years ago:
I just tried it and it worked! Thank you very much!
java.util.List<java.lang.Object> cannot be converted to java.util.List<greenfoot.Actor>
By Cool, with 1 reply.
Replied to by danpost, over 6 years ago:
You could try the following for line 3: <Code Omitted>If that does not work, start with: <Code Omitted>
Need help with tic tac toe
By Conneroman, with 3 replies.
Last reply by Conneroman, over 6 years ago:
Nevermind I figured it out! Had to change the boolean to a static bool.
need help with project concerning the actors
By Vishnu19, with 1 reply.
Replied to by danpost, over 6 years ago:
Vishnu19 wrote...
I would like to have an
random initial rotation (using a random number generator
Use a class constructor to set an initial random rotation.
and give it a greater random turn capability than what it is currently shown as below. << Code Omitted .>>
Increase the values on line 8.
I need help with getting the following method to create a condition in which when the actor touches the borders, it will respawn in random areas ONLY in the top half of the world (btw my world is 800x600). The code I have below allows the actor to respawn in rando
Clicking on transparent parts of actors.
By AlmostUselessPenguin, with 1 reply.
Replied to by danpost, over 6 years ago:
AlmostUselessPenguin wrote...
Is it possible to do either of these things: -Only register clicks within the visible area of the object (all the buttons are rectangular but not a whole number of grid spaces in size) -Offset an object's image by a fraction of a grid space in an alternative way
The first way is possible by having each button retain where its visible range is. Then checking the position of the mouse with respect to that range. The second way can only be done by reducing the grid size. Best would probably be to use a non-grid world and create the appearance of a grid wit
155
156
157
158
159
160
161
X