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
Clear World
By programmer22, with 2 replies.
Last reply by danpost, over 12 years ago:
The different approach would be to make your menu out of a different world class and then set it as the active world.
Making an extra level or getting the current to reset
By 11frendash, with 2 replies.
Last reply by 11frendash, over 12 years ago:
ok cool, i will try these interesting methods. i am obvously a beginner to you guys, haha
Ending a programme
By 11frendash, with 24 replies.
Last reply by 11frendash, over 12 years ago:
yeah ok seems to be working, also if it works it stays. thats my boring motto, hahaha
stuck again
By FootLongTurkey, with 3 replies.
Last reply by danpost, over 12 years ago:
Please supply the error message you are getting (copy/paste into your post). I have a feeling (though I cannot be sure) that it may be that there are no 'MyActor' objects in the world and you are getting an IllegalArgumentException' error when trying to 'get' a non-existant element from the existing list. BTW, the list will ALWAYS exist; it just might be empty of elements.
adding a functional scoreboard
By SkyLordAkash, with 3 replies.
Last reply by 11frendash, over 12 years ago:
oh ok, how did you fix it? post the programme
Falling Blocks
By TallMidget, with 3 replies.
Last reply by CooliMC, over 12 years ago:
No Problem :D
Help add a scoreboard
By zachfreeman, with 7 replies.
Last reply by geoffreyguilcapi, over 12 years ago:
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot) import java.awt.Color; import java.awt.Font; import java.util.Calendar; /** * The ScoreBoard is used to display results on the screen. It can display some * text and several numbers. * * @author (your name) (Geoffrey) * @version 1.0 */ public class ScoreBoard extends Actor { public static final float FONT_SIZE = 48.0f; public static final int WIDTH = 400; public static final int HEIGHT = 300; public ScoreBoard() { this(100); } /** * Create a
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, over 12 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, over 12 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, over 12 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, over 12 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, over 12 years ago:
ok thanks
cara meng upload
By alfandyhiphopfan.com, with 1 reply.
Replied to by lordhershey, over 12 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, over 12 years ago:
Yes, there is a way (if not many). The way would depend on how you implement your store (among other things).
672
673
674
675
676
677
678
X