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
Getting text to paragraph?
By -nic-, with 3 replies.
Last reply by -nic-, almost 13 years ago:
Thanks Danpost
GreenFoot on Thin Clients
By jason_pitt, with 1 reply.
Replied to by mjrb4, almost 13 years ago:
Is there anything in the debug log?
Can Greenfoot work on Windows 8?
By hallc, with 1 reply.
Replied to by mjrb4, almost 13 years ago:
Yes, both Greenfoot and BlueJ work with Windows 8 - we should probably update the page.
On making the scenario icon
By MatheMagician, with no replies.
Whenever Greenfoot takes the screenshot of my scenario, it will remove a bunch of the lines on it (take a look at my z-buffering scenario to see what I mean). Is there a way to fix this?
Text field
By moobe, with 3 replies.
Last reply by moobe, almost 13 years ago:
Thank you so much for your help! That was quite amazing! :D
spawning at location problems
By KierTulp, with 10 replies.
Last reply by KierTulp, almost 13 years ago:
Thanks for all the help, I believe it is really close to working now, but I can't spawn my gravity beam because it doesn't exist in the world yet. "java.lang.IllegalStateException: Actor not in world. An attempt was made to use the actor's location while it is not in the world. Either it has not yet been inserted, or it has been removed." I thought of spawning a few of them out of sight, and then moving them to the location when asked, but I thought that there should be an easier and better way of doing this. Do you know a better way?
Can't open project anymore
By Solringolt, with 1 reply.
Replied to by davmac, almost 13 years ago:
Too many images, or too large an image, in your project?
Move Towards
By wafflepudding, with 13 replies.
Last reply by wafflepudding, almost 13 years ago:
It works! I used the !getWorld question. I really appreciate all the time you've spent helping me with this, and I'm also definitely going to make a smart rocket with the following code. Both of you were extremely helpful.
Need some help
By moobe, with 8 replies.
Last reply by moobe, almost 13 years ago:
OK, but that's too easy :D Isn't there a way to do it by own usernames so that I can play the game on my own without being logged in here.
Menu stuff
By comandodude101, with 1 reply.
Replied to by MatheMagician, almost 13 years ago:
You could use a world as a menu and have a separate world for the game and then use the setWorld(new GameWorld()); method to change the gamestate when the menu is clicked.
On scaling problem
By danpost, with 2 replies.
Last reply by Super_Hippo, almost 13 years ago:
My bad again. My English is apparantly not perfect. <Code Omitted> So my world had 25*17 cells. But then I decided to devide every cell in 51*51 cells (which I probably called pixels because here: cells=pixels). The problem stays the same. Btw, the problem
is
was, that when an elephant (or the other enemies) only have one "big cell" (51*51), because I placed a dynamite, they were always walking back and forth, but I wanted them to stand there and do nothing.
It works now! I had to do the same with the dynamite. Thank you very
Help with mouse control
By SP00F3R, with 4 replies.
Last reply by SP00F3R, almost 13 years ago:
I rotated the image of the character and it works perfect, thanks a lot for the help.
Creating an object creates a null pointer exception?
By -nic-, with 3 replies.
Last reply by -nic-, almost 13 years ago:
Thanks Danpost and Vonmeth
Help for school project
By mitch2209, with 1 reply.
Replied to by danpost, almost 13 years ago:
Things you will need: - the alphabet: public static final String ABCs = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - a start time: private long startTime; (set when first keystroke is detected, otherwise equals zero) - a score: private int matches; (the number of correct keystrokes) - a counter: private int attempts; (the number of actual keystrokes -- right or wrong) Plus, you will need to keep track of the currently displayed letter: - the letter: private String letter = ""; Things you will need to do: - get a random letter - catch a keystroke - compare any keystrokes returned (if
zoom in and out in mid-execution
By Ethan243, with 1 reply.
Replied to by danpost, almost 13 years ago:
A progressive zoom feature would be nice, but would require some experience with programming to accomplish. An instant zoom feature would be a bit easier to program, but is still somewhat involved (depending on what kind of scenario you are writing). You would need a world instance field of a numeric type to track the current zoom value ('int' for instant zoom or 'double' for progressive), and everything (and I mean everything -- the background and all the actor objects) will have to use that value to determine their size and their location in the world. To complicate matters worse, if you
886
887
888
889
890
891
892
X