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
Whats the problem?
By Nokhaido, with 1 reply.
Replied to by danpost, over 9 years ago:
Nokhaido wrote...
But in this line: MouseInfo button == maus.getButton(); there is a ; expected between button and == Whats the problem with this?
Multiple issues with the line. First off, you use a single equal sign to assign a value to a variable (the double equal sign is for comparing for equality). Secondly, the 'getButton' method returns an 'int' value; but, you are attempting to assign it to a variable that you declare as type MouseInfo (should be 'int button = maus.getButton();'.
I need help, can't find method for Get.World
By EsperLevi, with 1 reply.
Replied to by danpost, over 9 years ago:
The 'orderOutForPizza' method should be in your MyCat class -- not in the CatWorld class.
Please Help!!
By jhc0327, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Generally, you should describe your problem instead of saying "it is not working". What I can tell you from your code is that 1. line 3 should be outside the method 2. line 29 will never be executed because the condition in line 23 is the same as in 28
move animation use button
By iban, with 11 replies.
Last reply by iban, over 9 years ago:
yesss now work master.. thank you very much. thank you ver very very much master :) :D
I need to make an actor run in a track in another world other than the origanal.
By fish, with 23 replies.
Last reply by danpost, over 9 years ago:
You might want to look at my
Racetrack Demo
scenario. It has three different car classes that use different codes for moving around the track -- one is line following; one is point instruction; and one it adjusted point instruction (the adjustment corrects the speeds around the turns to match the speed along the straightaways).
Null Pointer Exception
By rockon411, with 3 replies.
Last reply by rockon411, over 9 years ago:
Thanks guys! That helped a lot!
increasing speed
By ALPH3A, with 2 replies.
Last reply by ALPH3A, over 9 years ago:
yeah. maybe every 300 frames
Bugs in Greenfoot-Editor
By Busch2207, with 7 replies.
Last reply by amjad, over 9 years ago:
Thanks for reporting this. I’ve added it to the bugs database:
http://bugs.bluej.org/browse/BLUEJ-940
Help Me
By Ram1254, with 7 replies.
Last reply by danpost, over 9 years ago:
The constructor block, lines 19 through 33, is only executed once and is used to set up the world. Since asking questions will probably be done while the scenario is running, the constructor, then, would not be the place to initiate a question. Also, the answers are lost once the world is done being constructed because you declare the String array within the constructor block. I do not believe that a List object is the best choice for the questions, either. A standard array would seem more appropriate as the length (depending on the number of questions you include within the code) is fixed
it just keeps adding score,
By ALPH3A, with 4 replies.
Last reply by danpost, over 9 years ago:
ALPH3A wrote...
Hi, thank you for the help with the game over screen. But when i run the game it just adds score without me clicking the button, could you help so that it adds 1 when it is clicked
Remove the semi-colon ( ; ) from the end of line 20 in the Dot class.
cannot find variable 'score'
By ALPH3A, with 2 replies.
Last reply by Nosson1459, over 9 years ago:
Line 38 in MyWorld has to be outside all methods (line 11).
Tennisball: cannot find symbol- method getPlayer()
By Tryshot, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Please use code tags. In line 3, you use getPlayer twice. Is that wanted?
Snake game. Body parts follow actors in front of them
By LakyJ, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Line 67 creates a variables i and sets it to one → every Body object will have i=1. When they would have i=numberOfBodyParts (which is when you more 67 outside the method), then in the moveBody method, they would move faster. I suggest your Snake has an ArrayList of Body objects (can just be Actors, they don't do anything on their own). Then, whenever an Apple is eaten, a new one is added to the List. When moving, you move the last Body to the second last, the second last to the their third and so on.
ArrayList A
Random Background
By Fifilein, with 7 replies.
Last reply by Fifilein, over 9 years ago:
danke dir! Jetzt funktioniert es wie es sollte!!
control animation with button
By iban, with no replies.
help me again master, i have problem for take method animation in class orang. i want if i press the butoon, the animation is runing. thank's master :)
369
370
371
372
373
374
375
X