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
Using 'lists'
By Gazzzah, with 7 replies.
Last reply by danpost, over 13 years ago:
Well, I took some time looking through the APIs, and came up empty. That is, until I remembered an in-house project I had done for someone that required some directory searching; so, I located the project and reviewed the source. I almost gave up on that idea when I saw the JFileChooser, FileNameExtensionFilter, and JFrame import statements (nothing refering directly to Files themselves), but decided to look deeper in the code. I found a reference to the File class within the code and reviewed the imports, again. Then, I saw it:
import java.io.*;
. That had to be it! I went back to
Help Me Please!!!
By benedict3578, with 8 replies.
Last reply by danpost, over 13 years ago:
@SPower Actually, and unfortunately, your 'mistake' is worse than benedict3578's. His could only mean what you corrected his to say, as the Actor class is already named 'Actor' and cannot be renamed. Yours, on the other hand, has other possibilities which do not fit the case. Let's not nittpick semantics, at least in those cases where it is obvious what is being said. :)
Error within Terminal Window
By Marie, with 4 replies.
Last reply by SPower, over 13 years ago:
The course is posted! Sorry for the time it took, I was busy with some other things. Look at this scenario:
http://www.greenfoot.org/scenarios/5709
Exception with sound file
By SPower, with 3 replies.
Last reply by SPower, over 13 years ago:
Thanks, I'll look at it.
getNeighbors
By fishwaffles1337, with 5 replies.
Last reply by fishwaffles1337, over 13 years ago:
I've published the game feel to look at it and give any suggestions, it's obviously still a work in progress.
http://www.greenfoot.org/scenarios/5708
Finding the length of a list.
By fishwaffles1337, with 3 replies.
Last reply by danpost, over 13 years ago:
The problem is that line 32 creates a new variable called neighbors, and does not assign the list to the class field called neighbors. Therefore, line 41 will always return 'false', because the size of the class field is never populated. Easy fix, change line 32 to: <Code Omitted>By not declaring the variable here (no casting of type), the class field will be used. Also, by specifying 'Cell.class' as the class to list, only neighboring cells will be listed. One more thing, I am not sure why you asked if the size was greater than one. I have a
Problem speeding up texture mapping
By SPower, with 6 replies.
Last reply by SPower, over 13 years ago:
You don't have to help me: I just had to change this: <Code Omitted>to this: <Code Omitted>I usually don't see those things very fast: usually after speaking out load what's written down :), which is what I did this time.
Polymorphism in greenfoot?
By davemib123, with 4 replies.
Last reply by davemib123, over 13 years ago:
great ... thanks for the syntax tip davmac
how do i make a new object?!
By freed, with 6 replies.
Last reply by freed, over 13 years ago:
thanks guys ur super!
How to make a checkerboard
By nerdgirl92, with 7 replies.
Last reply by danpost, over 13 years ago:
I was not sure how to explain it to you, you being new and all. What you originally said you needed to do would require some knowledge that an person with some experience would acquire.
nerdgirl92 wrote...
"Create a new scenario. In it, create a world with a background that displays a pattern. Create an Actor subclass. Program the class so that it generates a new GreenfootImage of a fixed size, filled with a fixed color. Use this image as the actor’s image. Experiment with different color and alpha values."
I now believe that you misunderstood what you needed to do for this assignment.
Greenfoot and CC3
By mduggan, with no replies.
I am a newbie here. i was hoping one of you are using greenfoot on a RM CC3 network. and can my be advise me if you found any problems. Thanks in advance
Bringing an object under another?
By nooby123, with 9 replies.
Last reply by steved, over 13 years ago:
If you want the Enemy to go underneath the water what you could do is put a variable in the world and once the water adds and deletes itself (reseting) it would make the variable change. Then before it tried to reset it would check the varible and if it was off it would not do anything.
Enter a '\' sign in a String
By SPower, with 3 replies.
Last reply by SPower, over 13 years ago:
@davmac Thanks, I thought it was a \ sign but it is a / sign, I learned something useful (and basic :) ). @erdelf I have multiple background sound files, and I want to sort them.
Has anybody packaged his project as an exe file, which can run with out JRE on WIndows OS
By Upupzealot, with 3 replies.
Last reply by Upupzealot, over 13 years ago:
Yes, it can't work with out JRE but I have picked up the classes which is needed by my jar application and made a mini jre(about 20M),then pack the mini jre with the exe which is packed from my jar and we can run the project just double click the exe now what's more ,I together packed them to a setup.exe(about 8M) I think it's stand alone and much smaller
AirForce
By KommandoFaust, with 54 replies.
Last reply by KommandoFaust, over 13 years ago:
Thank you all, it will do the trick.
951
952
953
954
955
956
957
X