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
Changing the order of subclasses of World (or Actor)
By Super_Hippo, with 2 replies.
Last reply by Super_Hippo, almost 13 years ago:
Hm ok, thank you for the answer. Would be great, if it will be implemented in the next Greenfoot version.
cant edit my own program
By hskaratekid, with 7 replies.
Last reply by danpost, almost 13 years ago:
You need to get on the computer that the scenario originated and either upload it with the 'Publish source code' checkbox checked, or e-mail the scenario folder as an attachment to yourself (you could also copy to a flash drive to transfer the scenario folder to your new computer).
Help with attraction and repelling
By JasonZhu, with 2 replies.
Last reply by danpost, almost 13 years ago:
Maybe you did not explain very well. What is 'degree' supposed to be? and what is controlling the value of the transparency value (is this something that deals with 'LIFE_SPAN')?
Making a StartGame World
By JasonZhu, with 4 replies.
Last reply by danpost, almost 13 years ago:
The image is only tiled when it is smaller than the dimensions of the world. It is cropped to the size of the world when larger (top-left corner of image at top-left corner of world).
Scoreboard.
By Jabadu, with 7 replies.
Last reply by danpost, almost 13 years ago:
You probably need to do something like what I did in my
Level Changing Demo
scenario. In it, I pass an actor from world to world and, in doing so, other object(s) are automatically passed along with it. The first step will be adding references (instance fields) to your main actors in you world class.
Not calling a class when it should
By Abomb1126, with 1 reply.
Replied to by danpost, almost 13 years ago:
You are trying to save the world as a World object (see line 7 of the Crab class). Unless you tell the system that it is indeed a CrabWorld object, it will not look in that class for the method. Another thing about line 7, 'getWorld' will always return 'null' when the field is initialized. It remains null up to and beyond the completion of construction of the actor. Only after it has been completely constructed
and added into a world
will it return a non-null World object. You can use:
Severe bug which makes no sense.
By nosyarg, with 4 replies.
Last reply by danpost, almost 13 years ago:
nosyarg wrote...
Thank you! that made it work perfectly, do you know why the greenfoot buttons would do that by the way? It doesnt seem like a functionality which would be useful for anything...
I could not say. However, there should be no visibility through the background image of your world and therefore makes sense that that image be opaque (not at all transparent).
Code Writing
By Psychman, with 12 replies.
Last reply by danpost, almost 13 years ago:
I would be hard to say considering how you do not show how you implemented it.
image in JFrame
By baileyjstewart, with 1 reply.
Replied to by baileyjstewart, almost 13 years ago:
here is my code if(player1points == player2points) { //JOptionPane.showMessageDialog(null, " " + Player1 + " and " + Player2 + " TIE!"); winnerMessage = new JLabel(" " + Player2 + " and " + Player1 + " TIE!!!"); System.out.println("last one works"); spades = new JLabel(""); clubs = new JLabel(""); spades.setIcon(new ImageIcon("pik.png")); clubs.setIcon(new ImageIcon("kreuz.png"));
World suddenly creates too much actors
By Nooyi, with 2 replies.
Last reply by Nooyi, almost 13 years ago:
Oh, of course, thanks! I can't belief I haven't seen that! Thanks a lot :)
About variabele next
By Xaverua, with 2 replies.
Last reply by Xaverua, almost 13 years ago:
Thanks! I fully understand the programm x
character speed change
By chrissy098, with 3 replies.
Last reply by erdelf, almost 13 years ago:
well, is the x coordinate not 400`?
Worried
By Lethal_Vitamin, with 2 replies.
Last reply by Lethal_Vitamin, almost 13 years ago:
Thanks, I will.
Greenfoot not responding to user commands
By chrl98, with 6 replies.
Last reply by chrl98, almost 13 years ago:
Hmmm I see. Thanks for the explanation.
Doge, for you.
By deathburrito16, with 1 reply.
Replied to by davmac, almost 13 years ago:
Your first and only warning guys - don't mess around here and think nobody knows what you are doing.
746
747
748
749
750
751
752
X