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
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
NEED HELP! How to fix Actor not in World error?
By KAA, with 2 replies.
Last reply by danpost, over 6 years ago:
KAA wrote...
the error appears in the vacaw v2=new vacaw(); line
Please show your
vacaw
constructor code (it is in the
vacaw
class and starts with '
public vacaw()
'.
Need help deleting actors and remaking them using numpad like in the sunPlanetMoon() method
By VanishingDog, with 3 replies.
Last reply by VanishingDog, over 6 years ago:
Nevermind I got it working :) Thanks for the help!
i can't turn off my music when i enter next level
By Petr, with 4 replies.
Last reply by Super_Hippo, over 6 years ago:
You are stopping a sound which never started.
how to prevent overlapping
By Bigbobatesloppyjoe, with 4 replies.
Last reply by Bigbobatesloppyjoe, over 6 years ago:
Ok it works thanks!
155
156
157
158
159
160
161
X