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
i could use help im new to greentfoot.
By redouan75, with 1 reply.
Replied to by danpost, almost 11 years ago:
Does it have to be the same car or can it be a different one (possibly a different color car)? (if it will always be the same color, then using 'setLocation' would be easier than removing and adding) What part are you having problems with? * making the car disappear * making the car reappear or spawn * random placement Show what code you have tried (use the 'code' link below the reply box to insert code into posts) working on one part at a time.
Encountering multiple problems and none in which i can think of a solution
By DieKatze117, with 4 replies.
Last reply by danpost, almost 11 years ago:
You say your map is over 100000 meters. What exactly do you mean by that? Maybe you can describe it in terms of pixels on your screen and give both dimensions. I noticed a bunch of large images within the images folder. A blue screen can easily be produced withouth the need of a stored image. Same with the gray screen with the title on it. Why your captured tank battle result image is in the folder, I cannot say. These large images may exceed the cache memory available for them. If you need help as far as creating images like those programmatically, ask. Another thing I need to ment
scrolling world
By iPrototype, with 5 replies.
Last reply by iPrototype, almost 11 years ago:
Ill look into that game tomorrow. Thanks for the reply guys
Level-up screen
By abcd123, with 4 replies.
Last reply by davmac, almost 11 years ago:
If you call the 'stop' method, then it will stop and won't continue with the code after it.
This isn't correct; the 'stop' method halts the simulation loop after the current cycle has finished. It doesn't prevent code that immediately follows it from executing.
Help with actor (Sheep) not registering other actors (Paddle1) in Pong
By zekromslayer, with 2 replies.
Last reply by dan11, almost 11 years ago:
Sorry, in line 18 get rid of the .class as well
cant call method from an other class
By ds06, with 2 replies.
Last reply by danpost, almost 11 years ago:
The problem is that the field is of Actor type and not of Player type. The compiler does not know to look in the Player class for the field.
Help- Changing Size of an Actor
By DancingDuck, with 2 replies.
Last reply by DancingDuck, almost 11 years ago:
Thanks!
On maPong by Mortaz
By Mortaz, with 8 replies.
Last reply by danpost, almost 11 years ago:
Mortaz wrote...
can you create complex objects under one Actor for example the top/ bottom border, red lines, and the middle screen all of them on a single Actor? if so how do you do it?
You could -- but, in your case, since none of them interact this any Actors or move, it might be just as well to draw them onto the background of the world.
Null pointer exception
By Dillybar, with 3 replies.
Last reply by danpost, almost 11 years ago:
You can replace line 7 with the following: <Code Omitted>This was possible because both the 'bLeft' field and the 'marioL' field were made public.
Welcome to Greenfoot Discuss!
By JL235, with 3 replies.
Last reply by danpost, almost 11 years ago:
@fejfo, please do not reply to discussion posts that are not recent. This one is 3-1/2 years old. I do not think that this an issue any longer (chances are he has a new mouse, if not a new system, by now; or has moved on to other things). Anything over a month old, I would say, would not be worth responding to.
So...Any good galagas yet
By DieKatze117, with 2 replies.
Last reply by DieKatze117, almost 11 years ago:
didnt see this one, though i can d better i think :3
Boolean Question!
By Blackdow97, with 26 replies.
Last reply by Super_Hippo, almost 11 years ago:
Ergänze ein "else" in Zeile 14. Außerdem "mensch" in Zeile 12 durch "wmensch" ersetzen und "mensch" in Zeile 18 durch "mmensch".
Add object within ? radius
By gurlalsingh, with 3 replies.
Last reply by danpost, almost 11 years ago:
After adding the 'steve' to the world, give him a random rotation move him a random distance up to the radius required and then reset his rotation back to zero. Your remainder operation in the initial 'if' condition is odd in that it will only be true 18 times within the first 300 acts, then never be true again. If you want 'steve's to be spawned every 300 acts, you need to reverse the values -- (numActs % 300).
I am having trouble with a snake game
By Starrqwas, with 25 replies.
Last reply by danpost, almost 11 years ago:
I was also wondering why you went through such an elaborate sequence of steps in your enum. It could be written as follows: <Code Omitted>and 'List', 'Arrays', 'ArrayList', 'Collections' and 'Random' do not need imported. I do not see a need to import the 'Color' class either.
Security settings
By actinium, with 3 replies.
Last reply by Super_Hippo, almost 11 years ago:
I downgraded to Java 7 when I realized that the UserInfo doesn't work with Java 8. Now I always have to confirm 3 pop-ups (saying it isn't save to use an old Java version and it should be upgraded etc.) before I can load a scenario. I am not sure if it was different with Java 8, but in Java 7 you have to add http://www.greenfoot.org/ to the exception list in the security area of the Java Control Panel.
617
618
619
620
621
622
623
X