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
Respawning???????
By Kaiwalya, with 19 replies.
Last reply by danpost, over 13 years ago:
I was just saying that with the Text class as I have given it, you can use it for, let us say: (1) a wave text object (2) a score object (3) a message object (4) a highscore object all at the same time. My 'Pong Pinball' scenario has a Text class that is used twice in the Arena world class and twice more in the Paddle class to create four different Text objects. Download it and review the code to see how it works.
drawImage with ImageIcon
By Kartoffelbrot, with 5 replies.
Last reply by Kartoffelbrot, over 13 years ago:
Thanky, but because I painted an own image, which is only black they don't look like buttons any more. I didn't know that JLabels can be used as buttons, too, but I don't want to change it all, because all 64 fields (I have made a class "Feld" for them) are JButtons and in the GUI class they aren't saved in an array or a list like I wanted that first. I've enumerated them like: JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JButton jButton3 = new JButton(); That's very ugly, but I don't have much experience with that. My try to use an Array and to save them with a
Even numbers
By Kartoffelbrot, with 4 replies.
Last reply by Kartoffelbrot, over 13 years ago:
thanks
Don't start the game until you click on an object
By joeschmoe, with 2 replies.
Last reply by davmac, over 13 years ago:
Do you need anything else to be displayed at the same time as the button to start? If not, just have the button intiialise the rest of the actors etc when it is clicked. Otherwise, you need to have the actors check whether the scenario is running (according to your own criteria) before they do anything. For instance, you could have a variable in the world which is true if the scenario is running (your object has been clicked) or false if not.
doubt in green foot
By viyyashkumar, with 3 replies.
Last reply by danpost, over 13 years ago:
The simplest thing to do would be to remove all objects, clear the background and draw the message on the background itself.
Greenfoot for Chrome OS?
By thekidj, with 2 replies.
Last reply by erdelf, over 13 years ago:
I dont know much about it, too, but wouldn't the normal linux package work?
problems with spawned units health bars
By darkmist002, with 9 replies.
Last reply by danpost, over 13 years ago:
With the way I suggested above, the healthbar will be removed at the time the enemies object who owns it is removed.
Tutors
By Sparky, with 3 replies.
Last reply by danpost, over 13 years ago:
The Balloons and LunarLander scenarios are just sample projects that come with the Greenfoot download. Tutorials are not included with/for those scenarios.
What's wrong with it?
By Kartoffelbrot, with 3 replies.
Last reply by Kartoffelbrot, over 13 years ago:
Or I put line 5 and line 7 together to one if-statement. Thank you, I understood now whats wrong with it. It works now.
in game speed bar
By darkmist002, with 7 replies.
Last reply by darkmist002, over 13 years ago:
i wonder how long it will be before i can program stuff like this without having trouble and without having to ask for so much help. been programming with school for a couple of years now, and i'm still asking for help a good bit of the time. not as much as when i first started, but still a lot more than i want to.
GREENFOOT DARE #2 THEME
By JetLennit, with 3 replies.
Last reply by JetLennit, over 13 years ago:
null HAS WON THE CHALLENGE!!!!!!
Simulation
By LuisP, with 2 replies.
Last reply by Kartoffelbrot, over 13 years ago:
If you need random moving behaviour, try this (it's ugly but working): move(5); turn(Greenfoot.getRandomNumber(40)-10);
Change World and change back to the first World
By JesusJesus, with 17 replies.
Last reply by Kartoffelbrot, over 13 years ago:
Hallooo?
GreenfootImage and labels
By Zamoht, with 10 replies.
Last reply by danpost, over 13 years ago:
Getting back to the drawString method, I am sure it would not be difficult to change the return type to int and have it return the baseline length of the string drawn. But, as I said before, I doubt the Greenfoot team would agree to do something like that.
How to make a Crab each time it moves it uses 1/20 of a Worm worth of energy
By regba, with 52 replies.
Last reply by regba, over 13 years ago:
Thanks a lot danpost
809
810
811
812
813
814
815
X