This site requires JavaScript, please enable it in your browser!
Greenfoot back

What is happening right now?

danpost

reply to Please Help With setScore and getScore

By danpost - about 1 hour ago
Sean03 wrote...
im still get errors about set score please help someone
drewr1122 provided one of the two methods. It was your task to create the other one (setScore). However, methods like setScore and getScore are truly only helpful for access to the score from other classes. The WhiteCell class already has access to the score because it is defined in its class -- so those methods are not needed at all (at least for use in the WhiteCell class).
danpost

reply to How to controll the time

By danpost - about 3 hours ago
Remove line 9 from the Klingonen class. The Greenfoot class delay method will pause everything, not just spawning of actors. Use an int field in your subclass of World to count act cycles and presume 60 acts to equal one second of time. When the counter reaches 600 (60 acts times 10 secconds) spawn a Klingonen object and reset the counter to zero (use an act method in your extension of World.
danpost

reply to Moving Backgrounds - Question

By danpost - about 6 hours ago
wueschn wrote...
there must be a situation when you see it wandering from right to left and seeing that the background image below is resting. But from beginning on it works perfekt and everything is wandering perfect without seeing something resting in the background ..... That is perfect, but it is not clear to me why it is so perfect ...
I am not sure what you mean by "image below is resting". If you want clarification on some point, you will have to be more specific, show all codes used for scrolling (other than the Scroller class itself (which should not be modified) and provide sizes of both your world and the scrolling background image.
Sean03

reply to howwe get greenfoot on laptop

By Sean03 - about 7 hours ago
here is windows download link here is mac download link