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
shootball
By ronald, with 8 replies.
Last reply by ronald, about 7 years ago:
thank you
Object mowing by mouse doesnt work...
By Proprogrammer04, with 3 replies.
Last reply by Proprogrammer04, about 7 years ago:
danpost wrote...
It probably teleports to the location the mouse was at when the object was created. The field (m) does not update on its own.
That worked, when I update the Information in act, it works, thank you
Question about the act method and threading.
By Vise, with 1 reply.
Replied to by Super_Hippo, about 7 years ago:
As far as I know, Greenfoot only uses one. Each act cycle, the act method of the active world and the act methods of all actors inside that world are executed one after the other.
Food Movement
By AdiBak, with 1 reply.
Replied to by danpost, about 7 years ago:
AdiBak wrote...
I'm making the agar.io game, and I got the player to follow the mouse with some delay, and the food to spawn, but I'm confused on how to make the food move with the player movement, similar to screen scrolling.
ClassCastExeption
By cx31, with 1 reply.
Replied to by danpost, about 7 years ago:
Replace line 43 with: <Code Omitted>
Button to create Dynamic Actor
By nicpatel, with 1 reply.
Replied to by danpost, about 7 years ago:
nicpatel wrote...
I want to create a button which is capable to crwate dynamic object when it drag to mouse coordinates
What have you tried? Unclear what you want exactly. "when it drag to mouse coordinates" makes no sense at all. Giving some attempted code goes a long way in clearing up any misunderstandings and gives needed context to anyone who is willing to help. It also usually gets your issue resolved in a much shorter time.
please help me with my code i cant proced in my gamewithout it
By Coltz, with 23 replies.
Last reply by Reversatile, about 7 years ago:
Pacman
By TobiMobi, with 4 replies.
Last reply by TobiMobi, about 7 years ago:
Ok, now I understand it. Thank you
Showtext..
By Jargy, with 10 replies.
Last reply by Jargy, about 7 years ago:
thanks :-)
whats wrong with my code?
By Coltz, with no replies.
<Code Omitted>
how would i make a starting screen where you have to click start
By Coltz, with 2 replies.
Last reply by Coltz, about 7 years ago:
thank you
Change weapon void doesn't work
By Jargy, with 3 replies.
Last reply by Jargy, about 7 years ago:
oh thank you very much
How to make the object rotate with another
By MisterUnknown, with 52 replies.
Last reply by MisterUnknown, about 7 years ago:
Thanks :). Now both pipes dont move, just rotate and only one shootkey works, which triggers both pipes
Player shoots itself.
By MisterUnknown, with 5 replies.
Last reply by MisterUnknown, about 7 years ago:
Yeah, I fixed it by myself thanks. Eventhough it wont even start to shoot and the conosle is being opened as I push a shootkey
Error: missing return statement
By WithExtraDip, with 1 reply.
Replied to by danpost, about 7 years ago:
Both your
facingEdge
and
facingThing
methods have a
boolean
(true/false) return type. You cannot exit either of these methods without returning a
boolean
value. Either: <Code Omitted>or <Code Omitted>The value returned can be an expression that results in a
boolean
value. Some examples of expressions resulting in a
boolean
value are: * isAtEdge() // method with a
boolean
return type (state) * getIntersectingObjects(Actor.class).size() == 0 // comparison * Greenfoot.mouseMoved(null) && !Greenfoot.mouseMoved
173
174
175
176
177
178
179
X