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 color of an object
By cxcpio, with 8 replies.
Last reply by cxcpio, over 5 years ago:
I found out how! Thank you for your help anyways!
Adding Object
By NewbJava, with 16 replies.
Last reply by NewbJava, over 5 years ago:
danpost wrote...
NewbJava wrote...
That is what I have so far.
Again, I do not see any issues upon testing or reviewing the codes.
I copied and pasted everything in a new greenfoot scenario and it works now. Thank you for your constant replies and help!
getting Nullpointerexception, dont know how to solve it.
By Hellotheremyfriend, with 17 replies.
Last reply by Hellotheremyfriend, over 5 years ago:
Lol should have come up with that myself but thanks
Credits at the end of a game
By Gametodie2, with 5 replies.
Last reply by Gametodie2, over 5 years ago:
It functions! Thank you very much!
User input using the terminal
By cxcpio, with 1 reply.
Replied to by danpost, over 5 years ago:
cxcpio wrote...
In a game I am making, I would like the user to input a value several times throughout. I have tried the Greenfoot.ask method but I would like to use the terminal to ask for the user input as there is a input box there. Would this be possible?
The terminal has an input box? That is news to me. Are you sure?
Error When Constructing the World
By SwaggyXiao, with 3 replies.
Last reply by danpost, over 5 years ago:
Try: 2.00023d or (double)2.00023
Embedding Scenarios on a Google Site
By mrjswaine, with no replies.
Hi there, I'm a teacher who wants to make a page that embeds a bunch of student-created games. Is there a way to do this where each game is playable in each iframe on the same page? I'm using Google Sites to create the page. See site: https://sites.google.com/limestone.on.ca/jswaine/student-work Thanks, Jon Swaine Bayridge SS Kingston, ON
How to implement a Footer UI Component in Greenfoot?
By Dev_grey97, with 1 reply.
Replied to by danpost, over 5 years ago:
Dev_grey97 wrote...
How do I create the footer component in Greenfoot? Should I create it as an Actor component? If so, how do I place the Counter and Buttons Actors into it?
Probably best is to use an actor. There are cases where you may not need to go that route; but an actor will work in most, if not all, cases. Obviously, you will have 3 types of actors -- a counter, a button and a panel (backdrop of footer area). The main class would be for the panel (or "footer" class) itself. The objects for the panel can be basic
Actor
objects controlled by the panel. These are "va
Random Number question
By greenanarchist, with 2 replies.
Last reply by greenanarchist, over 5 years ago:
danpost wrote...
There are 21 even numbers within that range and the range starts at -20, increasing by 2: <Code Omitted>
Great, thank you so much :)
How to add background music?
By nigavart, with 6 replies.
Last reply by danpost, over 5 years ago:
nigavart wrote...
but how to insert the name of the song?
How is it named in your
sounds
folder (of your project folder in your file directory)?
Game over sound effect not playing
By void.null, with 1 reply.
Replied to by danpost, over 5 years ago:
(1) Do you call this
GameOver
method from the
act
method? (2) Did you place the
gameover.wav
sound file into the
sounds
folder of your project folder?
Does Greenfoot require a fileSeperator, when working on different OS?
By Dev_grey97, with 1 reply.
Replied to by Super_Hippo, over 5 years ago:
As long as you stick to relative paths, you shouldn’t need it. Well, I guess... I never used anything other than Windows, but I also didn’t come across problems like that here in the discussions at all.
Removing walls at separate times, using levers
By koil, with 3 replies.
Last reply by koil, over 5 years ago:
Your previous reply actually made me realise what was wrong thank you for the concern anyways
Stop Actors from being dragged
By cxcpio, with 3 replies.
Last reply by danpost, over 5 years ago:
cxcpio wrote...
Yes makes sense thank you. I want it to snap back to initial position when dragged. Can you explain how? Thank you
Place the following in classes of actor types you want to "snap" back: <Code Omitted>This will also prevent those types of actors from moving while the scenario is running as well, however.
World or actors not showing on screen
By Stemtree, with 5 replies.
Last reply by danpost, over 5 years ago:
Background should be full white. No actors are coded to be added to the world.
Stemtree wrote...
actor not showing up on screen when I create them
What classes do you currently have other than
World
and
Actor
? How are you attempting to create an actor?
103
104
105
106
107
108
109
X