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
Throwing a weapon at something else
By Minion1, with 7 replies.
Last reply by Minion1, over 12 years ago:
I will be sure to post it soon, it's going to be small, but hopefully people will enjoy it.
getActor() ?? Doesn't work
By AnneMacaroni, with 7 replies.
Last reply by AnneMacaroni, over 12 years ago:
Thanks guys!! When I use Greenfoot.mouseClicked(actor) it worked!! it sorta lags a bit before fully stopping.... BUT THANKS :D:D
Gravity
By comandodude101, with 1 reply.
Replied to by danpost, over 12 years ago:
Download my Scrolling SuperWorld scenario and check out the code of the 'Wombat' class which incorporates jumping/gravity.
Platform collision
By MindlessRicky, with 2 replies.
Last reply by danpost, over 12 years ago:
If you create local variables to hold the amount of movement horizontally and vertically, you can revert backward one pixel at a time until the intersection is not longer. The code would depend on how you are moving your actor (using int or doubles; using move(int) or setLocation(int, int); range of speed; possible directions of move; etc.).
Syllabus for New Instruction and Instructor
By dpaehlke, with 1 reply.
Replied to by iau, over 12 years ago:
You might like to take a look at the
The Greenroom
, our community space for teachers using Greenfoot. There are many resources there to help you, as well as teachers from all over the world who are facing (or have faced) the same issues. Others please note that membership of the Greenroom is only for teachers.
Installation help on Mac OS X mountain lion
By halfbit, with no replies.
i loaded the zip from the website and unpacked it. moved the folder to the programs folder. but when call the app, i get the message that the app is damaged. java -version java version "1.7.0_10" Java(TM) SE Runtime Environment (build 1.7.0_10-b18) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode) i installed the jdk, so what is wrong ?
Remove a specified object of a list
By Rodeurhalt, with 6 replies.
Last reply by danpost, over 12 years ago:
Great! Glad to hear it.
Greenfoot.getSpeed?
By erdelf, with 8 replies.
Last reply by Busch2207, over 12 years ago:
Well, of course you don't have to create an extra class, but in my opinion it's clearer and easier to handle. :)
How do you make worms appear only some of the time?
By LonelyCreeper, with 18 replies.
Last reply by LonelyCreeper, over 12 years ago:
it's a countdown clock that counts down the seconds as soon as the games starts. here's the code if it's useful: import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.Color; import java.util.Calendar; /** * Displays a digital clock in HH:MM:SS format. */ public class CountdownClock extends Actor { private int width = 60; // Dimensions of the display private int height = 20; private int prevSecond = -1; private int counter = 180; /** * The constructor creates the actor's image. */ pub
How to get the size of the image of a class from the world?
By AnneMacaroni, with 2 replies.
Last reply by AnneMacaroni, over 12 years ago:
lol it's actually pretty simple :P thanks!
Im at an impass...
By Oxy, with 2 replies.
Last reply by Oxy, over 12 years ago:
omg Thank You! I can't believe i didn't see that!
Why wont this respawn code work?
By comandodude101, with 33 replies.
Last reply by comandodude101, over 12 years ago:
Thank you soooooooooooooo much!
Struggling to get to grips with greenfoot
By Hlbranch, with 3 replies.
Last reply by davemib123, over 12 years ago:
Well for my class, I am getting them to go through basics of making this game:
http://www.greenfoot.org/scenarios/5799
I would suggest in you picking a type of game first and then attempt making it. That way you get to grips with it before you let your students loose on it
How do you let one actor call for the action of another one?
By LonelyCreeper, with 6 replies.
Last reply by LonelyCreeper, over 12 years ago:
Thanks dude! It worked :D
Counter on the Balloons Scenario
By Oxy, with no replies.
I want to make a counter for my game. so i have been using and slightly adjusting the counter and scoreboard class's on the Balloon Scenario. And i just cant seem to get it to add the correct amount of points. could anyone please explain to me how this counter works? and / or if there is an easier way to do it? thanks.
898
899
900
901
902
903
904
X