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
How do i export my scenario as a jar file
By Mahdir2111, with 8 replies.
Last reply by Mahdir2111, 1 minute ago:
I'm using greenfoot 3.7.1 and i still get the same error
How do i show the actors
By Mahdir2111, with no replies.
How do i show the actors
Creating documentation
By iordanissavgm, with 6 replies.
Last reply by iordanissavgm, about 16 hours ago:
I use the greek locale on my pc, if that matters. But even if i added a dot in the GifImage english code comments, the issue remains. Maybe a bug fix should be on its way.
GreenfootSound not acknowledging getVolume/setVolume?
By Bennylit, with 2 replies.
Last reply by danpost, 2 days ago:
Bennylit wrote...
I have a music track I want to fade out, and I thought I could accomplish this by using this code: << Code Omitted >> As you can see, it should slowly decrease the volume in intervals of 10. ... When I check the volume before and after it runs this code, it's the same.
There is a coding issue here. You programmed the "fade" in a single
for
loop without any time constraints. In other words, the loop will complete its task in a single act step. Regardless of what it actually does, it will not take any time in doing it. You need an
if
statement where t
how do I program bubbles shooting
By yumyumlover69, with 1 reply.
Replied to by danpost, 5 days ago:
yumyumlover69 wrote...
I want to shoot bubbles out of my Bubblegun, but i don't know how I need to program that
I would start with this:
how do I make score show up on the game?
By radu_edi, with 10 replies.
Last reply by radu_edi, 11 days ago:
Thank you for the help, it worked! I multiplied the score with getIntersectingObjects(Class).size() like this: <Code Omitted>
Idea for Project
By Mrfl1mflam, with 1 reply.
Replied to by danpost, 14 days ago:
Mrfl1mflam wrote...
Can someone please give me an idea for my final project? I need to make a new scenario, use 5 languages we haven't discussed in class, and have 2 different worlds W some actors. I need a user interface as it's supposed to be a game. Please give me an idea, I'm stuck.
If you were more clear as to what is needed, maybe someone might be able to help. As is, "5 languages we haven't discussed in class" is not only vague (not giving what languages you have discussed) but also ambiguous as to the type of language being referred to (spoken or programming). Of course, one c
Access to variables of other classes
By Jder2te, with 1 reply.
Replied to by danpost, 18 days ago:
Jder2te wrote...
I need to access a variable from another class. this works for one of them, but for some reason the second variable is not changing. << Code Omitted >> That is the second variable with does not work, << Code Omitted >> in this example the method does work. did I make a syntax mistake or something ?
Very confusing as far as which one worked and which one didn't. I hope you are not expecting the collision variable to update when all you did was move this actor. You performed no collision checking between the setting of the actors location and the testing of the co
VERY COMPLICATED - Loading Zones somehow losing references to final variables?!
By Bennylit, with 16 replies.
Last reply by Bennylit, 18 days ago:
I have found the problem, and for documentation purposes, I will share what I did to fix it. The problem was that when creating the rooms, even though they were final, some rooms were created before others. For example, this was the code for creating the final static rooms: <Code Omitted>You might notic
Uneaven hitboxes (very desperate)
By Jder2te, with 22 replies.
Last reply by Bennylit, 19 days ago:
Of course. If you need further assistance, we'll be here.
Checking the Solution for a Picross Game
By magentaink, with 16 replies.
Last reply by danpost, 21 days ago:
magentaink wrote...
I'm struggling to visualise how two 2D arrays in a 3D array would work for it?
Each 2D array in the 3D array is a solution with increasing difficulties. I only combined what you already had to simplify things.
just to double check, the indexes on the solutions array are row, column, solution right? I didn't think it would make that much of a difference since the clues essentially mean the same thing as the solution but I suppose the way it's stored and used does make the difference. How would an array representing my clues look so it doesn't turn out look
Greenfoot.ask() window doesn't close on web
By sthompson, with 5 replies.
Last reply by danpost, 28 days ago:
sthompson wrote...
Changing the act() code to call getKey() once and then use that key to decide what to do fixed the issue, though (I think using isKeyPressed() in act() was resulting in multiple text boxes opening on top of each other in web, whereas in Greenfoot the textbox opening pauses the program.
Still each string comparison should be accompanied with a check to ensure that the string returned is for the question asked. That is
Error with transferring methods between classes.
By oscarm, with 1 reply.
Replied to by danpost, 29 days ago:
oscarm wrote...
Im trying to get the nextWave function to run in the Myworld class. However it doesn't seem to like it :( << Codes Omitted >>
In your Wave_management class, remove line 28. Maybe you can see why.
Are the old versions of Greenfoot downloads offline?
By bertsierra, with 1 reply.
Replied to by nccb, 29 days ago:
I tried a few just now but they seemed to work. Can you name a specific one that wasn't working for you?
Information from different classes
By MarkusB, with 3 replies.
Last reply by danpost, about 1 month ago:
MarkusB wrote...
What does your code do? I have multiple different actors in my world. Sorry, I don't really know what I'm doing but getting started with stuff like this is super difficult because every slow tutorial is a mess to understand
Maybe you could show your "array as subclass of World" stuff so we could better understand where you are coming from.
1
2
3
4
X