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
Enemies will not actually spawn
By Ghost_Nixon, with 4 replies.
Last reply by Ghost_Nixon, over 12 years ago:
Thanks dudes.
Huh? Small arrow in my source code!
By JohnSherer, with 3 replies.
Last reply by davmac, over 12 years ago:
It sounds like a step mark. You must have used the debugger (perhaps without realising). The "highlight in red" is a breakpoint; you can set and remove those regardless of whether the step mark is there.
Rabbits and foxes simulation
By skreamone, with no replies.
Hi guys, i need a rabbits and foxes simulation for my informatical lessons, any germans here ? Sorry for my bad englisch :)
Help with determining efficiency.
By JasonZhu, with 8 replies.
Last reply by JasonZhu, over 12 years ago:
I did 2 examples. Example 1 being a randomly assorted array (same random array) for each sort. Example 2 being a reverse ordered list. I averaged the 2 values in nanoseconds I got to determine the efficiency. Grunt, Bubble, Insertion, Selection Hope I did this properly :)
public class Employee extends Person implements Comparable
By JasonZhu, with 1 reply.
Replied to by JasonZhu, over 12 years ago:
I made Employee an abstract class and it worked.
how to make space invaders stronger
By FlyingGvirus, with 11 replies.
Last reply by danpost, over 12 years ago:
No, you are not. Switch lines 15 and 16. The second line I gave must NOT be governed by the 'if' statement.
Cant find code
By FlyingGvirus, with 2 replies.
Last reply by FlyingGvirus, over 12 years ago:
danpost wrote...
Just create an Actor object, give it the image you want and add it to the world. <Code Omitted>
thanx
Ball Collision Detection and Rebound?
By Pointifix, with 18 replies.
Last reply by Pointifix, over 12 years ago:
the mistake was so stupid i did not find it for hours ;D solutions sometimes are easier then the look like ;)
need to make my invaders slower
By FlyingGvirus, with no replies.
my space invaders go at getX() -1 but its still 2 fast is there a way to make them slower or do i have to make them move up and down to make them slower ?
Help With Score Counter
By tristanisms, with 1 reply.
Replied to by danpost, over 12 years ago:
Have actor (whichever one is checking for collision between asteroid and spaceship) get World object, 'getWorld' method of Actor class have world object get List object of all Counter objects in it, 'getObjects' method of World class have List object return first element from itself, 'get' method (one of them) of List class cast element returned from List object as Counter object, '(Counter)' have Counter object add one to its 'value' field, 'add' method of Counter class
Struggling with Accessing Variables from other Worlds/Actors
By EIGNERT, with 6 replies.
Last reply by danpost, over 12 years ago:
EIGNERT wrote...
Thanks danpost. But is there a way to access objects and their methods from other worlds? That's my problem.
Sure. 'getWorld' just returns a reference to the world that the actor is in. If you use a reference to that world from another world, it would work just as well. Since you did not supply any names, I will call the one ChipWorld and the other OtherWorld. From OtherWorld:
Working with pixels?
By Cubinator, with no replies.
Is it possible to make scenarios on pixel level without these fields. I know, I could reduce the field size to 1x1, but I want to work completly without these fields. Is it possible?
A problem with spawning
By Alex89, with 10 replies.
Last reply by Alex89, over 12 years ago:
Thank you very much danpost! The problem is solved now. :)
Help with spawning Objects in an Array
By HollaHolla, with 3 replies.
Last reply by HollaHolla, over 12 years ago:
Thanks Danpost, helped alot
Get int of Actor image size in World
By Unicus, with 11 replies.
Last reply by Unicus, over 12 years ago:
Any idea why this won't work? <Code Omitted>It copiles successfully, but nothing appears Edit: Nevermind, infinite loop
713
714
715
716
717
718
719
X