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
Call super() at a later point?
By FirewolfTheBrave, with 2 replies.
Last reply by FirewolfTheBrave, 2 days ago:
Thank you, that works!
Update to maps helper class?
By SliderG, with no replies.
In the "maps" helper class, there is a class that creates a Greenfoot image out of a Google map. It's throwing an error because it's can't find the file. It may be that the Google Maps API has changed its URL since this Greenfoot class was put together. The code contains the following line: private final String urlBase = "http://maps.googleapis.com/maps/api/staticmap?sensor=false"; I looked on the Google Maps API documentation to try to figure out what to replace this with, but no success so far. Any ideas how to bring this up to date?
Using counter through different worlds
By jenhasnofriends, with 1 reply.
Replied to by danpost, 3 days ago:
Show codes of worlds and class where world transition takes place (if not in one of the world classes.
Referencing int from World to Actor - NullPointerException
By Suavessence, with 2 replies.
Last reply by Suavessence, 3 days ago:
Great, the solution is what I needed. Thanks!
I am not sure what this code does
By Rich11, with 2 replies.
Last reply by ChafikAZ, 3 days ago:
Even I could never had said it better, to sum it all up, it's incrementing it by one every time the code (presumably an if loop) is run through.
Save world to file
By Honza, with 9 replies.
Last reply by danpost, 3 days ago:
Honza wrote...
Okay, I will try to look at it this way. Thank you for help. :)
Yeah. You won't need
Serializable
or
serialVersionUID
.
How do you reference an actor's (public) method from the world?
By ChafikAZ, with 4 replies.
Last reply by ChafikAZ, 3 days ago:
Wow, you really are keen on helping wandering chicks like me, thanks!
Can somebody proofread this? I'm not sure it's perfect...
By ChafikAZ, with 4 replies.
Last reply by ChafikAZ, 3 days ago:
As my teacher says, "Work smarter, not harder."
How do you write the length of the wait?
By ChafikAZ, with 1 reply.
Replied to by ChafikAZ, 3 days ago:
I don't understand how I meant to describe the length of the wait... (Yes, I know it's measured in milliseconds)
How to make actor appear anywhere
By BlueHand, with 5 replies.
Last reply by danpost, 4 days ago:
BlueHand wrote...
The rocket class
Did it not occur to you that
addObject
and
getObjects
were
World
class methods?
isTouching isn't working
By iDragon3o6, with 1 reply.
Replied to by danpost, 4 days ago:
iDragon3o6 wrote...
This code is in the act method, but nothing happens if I start this: <Code Omitted>
Nothing wrong with that line. More info/code required.
Getting variable frm another class
By Roshan123, with 8 replies.
Last reply by Roshan123, 5 days ago:
Tank u!!!
One instruction class?
By BlueHand, with 3 replies.
Last reply by danpost, 5 days ago:
BlueHand wrote...
Sorry, I meant: how do I add different labels to them? There's only one counter class so I'm not sure how to do that.
Add a
String
parameter to
Counter
class constructor.
How to make an object respawn after being clicked
By ninjapuffin, with 4 replies.
Last reply by danpost, 5 days ago:
ninjapuffin wrote...
my objective is to make a game where you click a banana and it disapears. and ti need help w/ spawning more bananas after one is clicked
In
MyWorld act
method: <Code Omitted>An
addBanana
method is to be added also.
I cannot figure out why I have an error
By Rich11, with 8 replies.
Last reply by danpost, 6 days ago:
Rich11 wrote...
I still have the error... What codes should I use in the new subclass?
Same error? Show current
YouLose
class codes (entire page).
1
2
3
4
5
X