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
Sound Problem
By Gingervitis, with 2 replies.
Last reply by Gingervitis, over 11 years ago:
When I have the Greenfoot.playSound for the worm class, it continually plays the sound over and over again.
getColorAt() only works on world objects, not actor objects. Can change this?
By Minion1, with 3 replies.
Last reply by danpost, over 11 years ago:
If you want to get the color of a pixel in the image of an actor, use (from within the class of the actor whose image you want the pixel color of): <Code Omitted>The values of 'x' and 'y' are offsets from the top-left corner of the image itself.
Null pointer exception to... I don't know.
By Minion1, with 7 replies.
Last reply by Minion1, over 11 years ago:
Thank you danpost, your observation about needing a more accurate location of the background helped me find a solution. It's not complete yet, since it's looking PAST the background picture and into the all white layer, but all in all I think I can fix it from here. If not, well, I'll probably be back here begging for help.
need help with project.
By josiahrc13, with 3 replies.
Last reply by josiahrc13, over 11 years ago:
i did
call a method only once
By Paddy-Boom, with 4 replies.
Last reply by Paddy-Boom, over 11 years ago:
it works! thanks a lot :)
remove an actor at an certain place
By seelensauger, with 12 replies.
Last reply by seelensauger, over 11 years ago:
ok now i got it. the class I wanted to remove (RasenmaeherR) was a subtype of Rasterobjekte (i just needed these one to try out the positions). I changed that and now is everything ok. thanks a lot greetings seelensauger
non-static method cannot be referenced from a static context
By ctgreenfoot, with 19 replies.
Last reply by ctgreenfoot, over 11 years ago:
would anyone be able to help me on this?
Cannot be cast
By Thellior, with 1 reply.
Replied to by Thellior, over 11 years ago:
Fixed it already thanks:) With Greenfoot.setWord(newFloodWorld(Menu.DijkDoorBraak.charselect) give a parameter. in FloodWorld. Public FloodWorld(int charselect)
drawPolygon()
By Game/maniac, with 2 replies.
Last reply by Game/maniac, over 11 years ago:
thank you, it worked!
How to end the game if there are no lives left
By LonelyCreeper, with 7 replies.
Last reply by danpost, over 11 years ago:
Change the calling method to the following: <Code Omitted>
Run Time error
By BradH, with 5 replies.
Last reply by BradH, over 11 years ago:
yes I was, Thanks guys.
Where can I get just chapter 1?
By NateP, with no replies.
I was told the book is free, its not, so I want to atleast "try" the first chapter to see if its worth purchases anyone know where I can get it?
How can I check when a key is NOT being pressed?
By camsterb, with 2 replies.
Last reply by camsterb, over 11 years ago:
Shrug indeed...
non-static method-non-static-non-static-non-static...
By Minion1, with 7 replies.
Last reply by danpost, over 11 years ago:
You are probably calling the 'redCheck' method either before the Cursor object is placed in the world or after it has been removed. You could put a check as the first statement in the 'redCheck' method to avoid the error: <Code Omitted>
MenuDijkDoorBraak cannot be cast in FloodWorld
By Thellior, with 1 reply.
Replied to by Thellior, over 11 years ago:
https://www.dropbox.com/s/kjmmnb4yreezj00/Dijkdoorbraak.rar sorry for the Dropbox link. but i dont know how to share the code
884
885
886
887
888
889
890
X