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
Getting an error that i do not know how to fix
By Wasupmacuz, with 3 replies.
Last reply by Wasupmacuz, over 8 years ago:
danpost wrote...
You have the BottomSensor class extending the Player class. So, when you create a BottomSensor object, you have the Player class constructor creating another one, and another one and so on. -- until your either you run out of memory or the stack overflows (whichever occurs first, which in your case was the stack overflow). A BottomSensor object is not a player and therefore its class should not extend the Player class -- it should extend the Actor class.
Okay thank you Dan. Stupid mistake, I guess :)
Moving an actor one space at a time
By vermox, with 10 replies.
Last reply by danpost, over 8 years ago:
vermox wrote...
IIt's just the package classes that I'm not used to I think.
Well, its the same learning process as any other package you might import. You look at the documentation to see what the individual classes are for (in general description of class) and what they can do (fields, constructors and methods).
adding objects of the same class to the world with different variables set
By rick_kik, with 9 replies.
Last reply by rick_kik, over 8 years ago:
@Super_Hippo Ok thanks for your help! It's working great!
How to make a Object Solid
By Gaming_100, with 1 reply.
Replied to by Fifilein, over 8 years ago:
In my game I am using this Code: <Code Omitted>Maybe this can help you!
AI bouncing off walls!
By S77, with 4 replies.
Last reply by S77, over 8 years ago:
thanks ill try that aswell!
Moving Plattforms
By Fifilein, with 26 replies.
Last reply by Fifilein, over 8 years ago:
Thank you!
Hockey Help!
By MadmanSA, with 4 replies.
Last reply by danpost, over 8 years ago:
Nosson1459 wrote...
Do you have anything so far, or you want me to create the whole scenario? It will be easier to work on classes that you already have (and shown with
code-tags
). If you don't have anything at all then you should
read this
.
We cannot help with these things until we see what you currently have. For a working counter, we need to see
everything
(all codes related to or using the counter and we need to know where each given code is located in your p
Returning Sum
By rockon411, with 3 replies.
Last reply by rockon411, over 8 years ago:
Thanks!
Setting an Image on another actor
By Gaming_100, with 6 replies.
Last reply by danpost, over 8 years ago:
Gaming_100 wrote...
Is there a way to send a simple command to the other
actors
?
Does this mean you have multiple actors that you want to have changing colors when the button is clicked -- like ALL actors of a given type?
Preventing objects from being placed on top of each other
By SeaShore, with 1 reply.
Replied to by danpost, over 8 years ago:
SeaShore wrote...
Do you guys have any recommendations on how to fix my fixPlacement method? Or should I try something else entirely to prevent the buttons from overlapping each other?
Well, you should not try to adjust their positions from the Button class (remove thee 'fixPlacement' method from the class). It appears to me that you have 16 possible answers and you are trying to shuffle them while placing then into the world. I would prefer to shuffle the buttons first, then add them into the world in their shuffled ordering. It is, however, possible to shuffle them while adding t
Healthbar
By Nooooob, with 21 replies.
Last reply by Nooooob, over 8 years ago:
Nosson1459 wrote...
In your MyWorld class change line 8 to: addObject(healthbar, 50, 10);
It's working. Thanks a lot!
Nosson1459 wrote...
Sorry for all the trouble - my fault.
Don't be sorry, thanks for the help :) Tbh I wouldn't have figured it out anytime soon.
Actor collecting something
By ironphoenix20, with 5 replies.
Last reply by Super_Hippo, over 8 years ago:
I really have no idea how you can get a NullPointer exception when you check if it is not null right before it =/
i cant get the colours working it keeps show an error every time i put it in, Any help would be very much appreciated!
By S77, with 7 replies.
Last reply by danpost, over 8 years ago:
S77 wrote...
i took your advise anyway and i worked thanks!
You probably do not have this import then: <Code Omitted>which would allow you to use 'Color.WHITE' instead of 'greenfoot.Color.WHITE'.
im very new, and i've been finding this hard to fix any help!?
By S77, with 2 replies.
Last reply by S77, over 8 years ago:
its alright i got it to work, but i also cant get my green foot to actually load up? as for now which is quite interesting!
Hover Detection?
By Gaming_100, with 4 replies.
Last reply by Gaming_100, over 8 years ago:
@danpost Thanks very much! IT WORKS!! Admire your work a lot! Thank you very much! :) :D
365
366
367
368
369
370
371
X