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
Como subir un escenario...
By Gabriela_Diaz_A, with 6 replies.
Last reply by Gabriela_Diaz_A, over 4 years ago:
ahh thank you Roshan123
Need to differentiate Super class and subclass
By Professorhafeez, with 1 reply.
Replied to by danpost, over 4 years ago:
East should not extend West. It should extend World ?? or Greenworld? Extending a class means that the newly described objects that the new class creates will be of the same type. When you extends World, you will describe a new type of World. If East extends West, you are saying that an East world IS a West world.
Collisions not working properly
By theVeritas_, with 16 replies.
Last reply by theVeritas_, over 4 years ago:
Oh, ye, that was the problem :'D Thanks, I don't know why I put dir in act(), but I think I moved the change of dir because there was some error? I think? And yeah, that was probably because dir wasn't as class variable, but local in act() method. Thanks again!
Need change direction of shooting
By greenwood, with 5 replies.
Last reply by danpost, over 4 years ago:
greenwood wrote...
i have another problem. How to limit the number of zombie spawns ? Let say I want only 15 zombies to spawn
If you want no more than 15 in the world at one time, you can use: <Code Omitted>to limit spawning. If you want only 15 to spawn in total, then add a counter field and use it to limit the spawning: <Code Omitted>
Important Question regarding greenfoot
By Professorhafeez, with 1 reply.
Replied to by Super_Hippo, over 4 years ago:
While the scenario is paused, you can right click on objects to Inspect them.
my shooting animation not fully animated
By greenwood, with 2 replies.
Last reply by danpost, over 4 years ago:
There is a lot that can be improved upon in your code. The biggest concern I have is that you are loading a bunch of images every frame when moving or shooting, where you can have the images pre-loaded to use when needed.
counter not working
By vbh, with 5 replies.
Last reply by vbh, over 4 years ago:
i have solved the problem :-)
Help needed for game idea!
By Dreadd, with 2 replies.
Last reply by Dreadd, over 4 years ago:
Conkorde wrote...
You could make anything you want, wouldn't recommend a dating sim tho
i am very lonely
FileNotFoundException - Eclipse
By ronald, with 5 replies.
Last reply by danpost, over 4 years ago:
ronald wrote...
where did you see this sentence? which API?
danpost wrote...
If the named file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading then a FileNotFoundException is thrown.
FileOutputStream-java.io.File
How do I create layers for my graphics? | Java
By CodingCowgirl, with 1 reply.
Replied to by danpost, over 4 years ago:
If you want your text to show above other actors, then use the
setPaintOrder
World
instance method.
How to make enemies in Greenfoot version 3.7.0
By Karlachan, with 1 reply.
Replied to by danpost, over 4 years ago:
Karlachan wrote...
Hi I am making a mini game with a partner for our school project. We used the code from this video to make our enemies: https://www.youtube.com/watch?v=L9lnAeEgA2M however, it always marks an error in our editor. So our guess is that the version of Greenfoot we are using is different from the video. So, how can we adapt this code for Greenfoot Version 3.7.0?
It is best to show the codes
YOU
are using.
Object moving towards another object
By xixEmilyxix, with 6 replies.
Last reply by xixEmilyxix, over 4 years ago:
thank you
World doesn't display text although code is correct - why?
By CodingCowgirl, with 8 replies.
Last reply by CodingCowgirl, over 4 years ago:
@danpost It's a simple button that redirects to the next question.
Displays greenfoot logo image
By AbdulrazaqAS, with 1 reply.
Replied to by danpost, over 4 years ago:
AbdulrazaqAS wrote...
I set different images to different characters but if I click run/reset, all of the characters display a foot(i.e. greenfoot logo).
How did you "set" the images? Explain or show code (which every way you did it).
Problems to launch greenfoot after installation
By Karlachan, with 3 replies.
Last reply by danpost, over 4 years ago:
Try an earlier version or the USB version.
52
53
54
55
56
57
58
X