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
Pausemenü während eines Prgrammes
By ickehicks, with no replies.
Ich habe ein kleines mit meinem Pausemenü. Vorneweg ich bin Anfänger ;) Zum besseren Verständnis gleich der entsprechende Quellcode: <Code Omitted>Textfeld ist eine leere Klasse ohne Bild. Der Gedanke war, dass nachdem escape gedrückt wurde ein Pausemenü erscheint (pause2.png) mit verschiedenen Auswahlmöglichkeiten (button 1 bis 4). Und wenn man eines dieser Textfelder 1 bis 4 drückt was entsprechendes passiert. Und genau das klappt nicht. Hilfe? :D
Adding Text
By BookwormGeekGirl, with 2 replies.
Last reply by BookwormGeekGirl, about 11 years ago:
I was playing around and managed to find a way in which to do it, gladly I can say that it is fully functional so I can get off my laptop and back to reading as 6 of my final exams (GCSEs) are over! Whoop :D BTW, this is the working code;
Open a .HTML page when the user clicks a JButton?
By Mint_Greenie, with 6 replies.
Last reply by danpost, about 11 years ago:
I have created an Actor class that creates an object that allows the user to select a color. It is included in my most recent scenario,
ColorSelector and DropDown Options
. It is a self-contained class called ColorPanel that comes with color box that becomes a drop-down of various default colors as well as bars to modify the color parts. Maybe you can make use of it.
counter?
By spatel493, with 3 replies.
Last reply by danpost, about 11 years ago:
You will need an internal counter either way (whether displaying throughout the game or just at the end). You just need an instance int field added to the Wombat class for keeping track of how many leaves it eats and an instance int field added to the Lobster class to keep track of how many crabs it eats. Refer to the page on
Declaring Member Variables
of the Java tutorials to see how to add these instance fields.
Working with the GUI elements
By basil60, with 1 reply.
Replied to by danpost, about 11 years ago:
You could do what I did in my
Equation Grapher
scenario. I created clickable actors as buttons on the input panel with a single display actor for the text (basically like the calculator itself). I drew the numbers and symbols directly on the images of the button actors.
how to delay a specific sprite/actor?
By TheWelshGamer, with 10 replies.
Last reply by TheWelshGamer, about 11 years ago:
ok thanks
cara meng upload
By alfandyhiphopfan.com, with 1 reply.
Replied to by lordhershey, about 11 years ago:
if you want to upload a scenario you click the share button, upper right corner of the main Greenfoot window.
Store:Greenfoot?
By Mint_Greenie, with 1 reply.
Replied to by danpost, about 11 years ago:
Yes, there is a way (if not many). The way would depend on how you implement your store (among other things).
Song
By geoffreyguilcapi, with 4 replies.
Last reply by danpost, about 11 years ago:
danpost wrote...
Create GreenfootSound objects and call GreenfootSound methods on them.
Let's say you had a sound file called "pop.wav": <Code Omitted>
Checking For Objects
By 16jehrlich, with 1 reply.
Replied to by danpost, about 11 years ago:
You do not need to go to the world class to fix the problem. Instead of removing the player, just change worlds to the game over screen.
Keeping Score
By alashuk, with 1 reply.
Replied to by danpost, about 11 years ago:
What is your world class structure like? Which one is your initial world and where does it go from there?
Europe Map
By Sbaliyev, with 15 replies.
Last reply by danpost, about 11 years ago:
Sbaliyev wrote...
Every capital must asked 1 time not more how am i suppose to do this?
It would have been nice to know this before we finalized the code. You will need to List the Locatie object and remove them from the list as they are used. You will need to import 'java.util.List' into the Achtergrond class. You will need an instance List object to hold the unchosen capitals and it will need to be loaded with the capitals after they are all created.
ScoreKeeper:Greenfoot
By Mint_Greenie, with 3 replies.
Last reply by lordhershey, about 11 years ago:
Do you have access to Perl or Php on your website? If so I could show you have to save/retrieve scores using http post/get, it would be kinda cool.
How to make multiple levels?
By AmandaRachelSoniya, with 1 reply.
Replied to by danpost, about 11 years ago:
You may want to download and look at (and maybe even use) my
Super Level Support Class
.
Chloeiscoolbtw
By ToXiC0cAbBaGe, with 18 replies.
Last reply by davmac, about 11 years ago:
Please don't spam the forum with personal/meaningless messages. Thanks.
670
671
672
673
674
675
676
X