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
Csv file
By Roshan123, with 10 replies.
Last reply by Roshan123, over 5 years ago:
now its fixed
HELP list size() not working properly?
By Gonçalo, with 5 replies.
Last reply by Gonçalo, over 5 years ago:
It worked @danpost! I do needed to create an act method in Game1 world. Thank you so much, your the best! Best regards.
Make an object follow the cursor
By Mousekip, with 8 replies.
Last reply by Mousekip, over 5 years ago:
danpost wrote...
Mousekip wrote...
At the time, when I wrote the comment, I already changed it to mouse and it still didnt work. As requested here´s the code of the entire class
Remove lines 123 and 141.
It now works perfectly! I should have noticed that when you wrote about what mousePressed means in detail. Thank you very much!
Where can I find images to animate Actors?
By Dev_grey97, with 1 reply.
Replied to by Mousekip, over 5 years ago:
If you dont plan to post it online, you could just google it and use any image you find. It would have to be a png though.
Removing an object once it has met the criteria
By potsmoka, with 23 replies.
Last reply by potsmoka, over 5 years ago:
Thank you it finaly works!!
Avoiding overlapping objects
By cxcpio, with 2 replies.
Last reply by danpost, over 5 years ago:
cxcpio wrote...
<Code Omitted>
This makes it appear your objects can span more than one grid square; yet, you only set exactly one square as not empty when you place an object. You need to set all squares an object covers as not empty for your code to work. Also, you need check all square an actor will cover to place that actor -- not just the one where it starts at.
Value Display Danpost
By ronald, with 12 replies.
Last reply by ronald, over 5 years ago:
thanks danpost
Is there a way to check if 2 objects are overlapping?
By cxcpio, with 1 reply.
Replied to by Super_Hippo, over 5 years ago:
Use the isTouching-method to check if it overlaps with another one.
Playername
By PascalFischer, with 5 replies.
Last reply by danpost, over 5 years ago:
PascalFischer wrote...
and how can I show this name over my Main Actor?
Dark mode ?
By tr3x, with 6 replies.
Last reply by Super_Hippo, over 5 years ago:
I think I have all possible Windows settings as dark mode. Windows Explorer is also in dark for example. What you can also notice is that there is a bug with the last }. As there are like a million different options to adjust, it would be amazing to have a dark mode option to choose from in a future version, so you can enable a more eye friendly program and website.
create another Object, when clicking with the Mouse on a Button
By PascalFischer, with 1 reply.
Replied to by danpost, over 5 years ago:
Use: getWorld().addObject(...)
Can Super contain user input
By cxcpio, with 2 replies.
Last reply by cxcpio, over 5 years ago:
Works thanks!
Google Map API not working?
By bobkae, with no replies.
Hi - I have some students that want to use the Map class in a project. The simple examples aren't currently working in the latest version of Greenfoot. Does anyone know if this is a Greenfoot version issue, or a change in the Google Map API that is causing errors? The following is a compile error: Caused by: java.io.FileNotFoundException: Could not find file: http://maps.googleapis.com/maps/api/staticmap?sensor=false¢er=Brazil&size=600x400&zoom=5&maptype=roadmap
I have added jumping to my game and was wondering if there was way for the player not to be able to just hold down the jump key, I want the jump to happen only once per keypress, and not if the player is just holding the key down
By Sslur, with 1 reply.
Replied to by danpost, over 5 years ago:
To "catch" the changing of a continuous state, you need to know what the last state was (so you can compare the current state to it: <Code Omitted>In your case, it could be:
Hitbox
By nandoIT, with 1 reply.
Replied to by danpost, over 5 years ago:
nandoIT wrote...
hi I'm doing a donkeykong game right now. but i have a problem, in the Game from 1980 donkeykong rolles barrels and the player jumps over but the range of my barrels is so big the player cant jump over. how can i reduce the range of the barrel?
Are the sizes of your actors appropriate? Are the speed of the barrels appropriate? Is the jump speed and height of the player appropriate? In other words, what changes would you think might resolve the issue at hand?
104
105
106
107
108
109
110
X