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
Discussion
By vivanbre000, with 1 reply.
Replied to by TheWeeg, over 9 years ago:
Good morning
incompatible types: java.lang.Object cannot be converted to greenfoot.Actor
By MrsWarren, with 1 reply.
Replied to by danpost, over 9 years ago:
Please show the code of the subclass that extends the Animal class that is producing this error.
HELP ! confused on error message
By rnb262, with 1 reply.
Replied to by danpost, over 9 years ago:
You have the class ending right after the act method. Everything else below needs to be moved up inside the class.
Why only last command works
By Marrryanx, with 1 reply.
Replied to by danpost, over 9 years ago:
Because all possibilities are covered by the first two condition (either the first one is true or, if not, the second one must be true), the last two conditions are never a consideration. Either use the same button class for both buttons (with possibly different text) or disconnect the 'if's by removing the 'else' at line 11 and check which world the actor is in before asking about each button.
How can i get enemys to move but not go past a ceratin y co - ordinate
By jrod159, with 3 replies.
Last reply by jrod159, over 9 years ago:
ok thanks for the help guys :)
theres no Button Compile all on my greenfoot
By novianty.ophy, with 13 replies.
Last reply by danpost, over 9 years ago:
You have shown part of a subclass of Actor. I asked for you to show ALL codes you have created (meaning entire class codes of ALL subclasses of World and Actor. I do not know if you even have a subclass of World, which is required, yet.
Bouncing Ball
By KyrenD2, with 3 replies.
Last reply by Super_Hippo, over 9 years ago:
Oh yes, you are right, thank you. I probably missed that because I have never used that method myself... or because the method in the Animal class is named atWorldEdge.
Sounds
By Solomon, with 2 replies.
Last reply by Nosson1459, over 9 years ago:
In play do:<Code Omitted>
cutting background images
By Alexlazea, with 5 replies.
Last reply by Alexlazea, over 9 years ago:
I belive i still have a lot to learn, i understood your idea and i'm gonna apply it differently, made by myself, othervise i will not understant anything and not learn anything Thans for the ideea dude, you're awesome
Sound
By Solomon, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Try to use "dog.wav" instead of only "dog".
adding checkbox to a panel
By divinity, with 7 replies.
Last reply by divinity, over 9 years ago:
thank danpost
Preventing collision of player with other classes
By wym, with 1 reply.
Replied to by danpost, over 9 years ago:
If you mean you are trying to have the player stop when a tree is encountered (so that they do not intersect each other -- that kind of 'prevent collision'), then your Tree class should simply be this: <Code Omitted>and you should have the player that moves check for trees and stay off of them.
Adding object to world
By Solomon, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
If this is in a world subclass, simply remove 'getWorld().'.
Changing world
By Solomon, with 3 replies.
Last reply by danpost, over 9 years ago:
Solomon wrote...
java, and i figured out how to do it using a key, but each time i swap through words they reset, how can i fix that?
Do not create another world of that type. Maintain a reference to the world and set it active again when needed.
Text size
By Solomon, with 2 replies.
Last reply by Solomon, over 9 years ago:
nevermind i got it to work now thx
404
405
406
407
408
409
410
X