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
HELP
By Indy5Drew, with 4 replies.
Last reply by Vercility, almost 8 years ago:
Use a counter for delaying (I read somewhere that 130 act cycles are about 1sec but you'd have to try yourself) And one for the amount of keys played yet When the Counter is > whatever delay u want, call a method that plays a key depending on the key counter
How to make Object turn before touching edge.
By Nordine, with 2 replies.
Last reply by Nordine, almost 8 years ago:
Thank you Danpost for the quick reply. I did not think of that one. I appreciate the help.
Doubles to Integers
By DrCrane, with 11 replies.
Last reply by Vercility, almost 8 years ago:
IDK, used an online compiler on my phone when i wrote this, might have been faulty
JOptionPane
By Hmac2000, with 6 replies.
Last reply by danpost, almost 8 years ago:
Okay -- you cannot repaint a world that has not been completely constructed. Therefore, your initial world cannot be a question world if you are to use the constructor for the questioning. Secondary world constructors could be used; however, they again must be created after the initial world has been completely constructed (the secondary world being created from either the act method or the started method of the initial world). The secondary world would have to use the initial world background to pose the questions from its constructor because the initial world is the one that is active at
Infinite loop
By ImAndrew, with 8 replies.
Last reply by danpost, almost 8 years ago:
ImAndrew wrote...
I thought that would cause errors but I see it didn't.
I am not declaring a new variable with the same name. Just re-using an already existing variable.
How could I shrink and enlarge the object image without losing its quality. With the scale method wich I use the objects images look very bad and pixelated.Could I use vector images?
You should not, in this case, re-scale the same image over and over. Copy the original image and scale it each time:: <Code Omitted>whe
A Pig's Dream - Improvements
By Lilly123, with 4 replies.
Last reply by xbLank, almost 8 years ago:
1) The hitboxes are completly messed up 2) You can just hide at the very top of the screen where no clouds are 3) Make the background scolling 4) Let the pig move back and forth
using one actors variable in another
By roonie01, with 2 replies.
Last reply by roonie01, almost 8 years ago:
thank you
help with exam plz due monday
By roonie01, with 19 replies.
Last reply by roonie01, almost 8 years ago:
never mind it works thanks so much danpost
HELP
By nick_crompton, with 8 replies.
Last reply by danpost, almost 8 years ago:
You probably just need an 'else if' block in between the current 'if' and 'else' blocks which says if reacting, just move: <Code Omitted>
danpost Scrolling tutorial
By Paul12345, with 1 reply.
Replied to by danpost, almost 8 years ago:
Make sure you scale the image properly before you pass it to the Scroller constructor. If you continue to have issues, please show the class codes of the scrolling world so that it can be examined. Or better yet, upload what you have (with source included) so that it can be properly tested and diagnosed. One thing it might be is that you have transpencies in your image. Make sure you use a jpeg image or, if it is a png, try drawing the image on a completely painted image (probably of color white) of the size required and using it.
Add a count down timer in greenfoot with a font!
By frequency, with 3 replies.
Last reply by danpost, almost 8 years ago:
frequency wrote...
What about the code? Can i find it somewhere?
I wrote a tutorial on displaying values. It can be found
here
.
If the player clicks on a class,then start the game with some parameters
By frequency, with 6 replies.
Last reply by frequency, almost 8 years ago:
I want to finish the scoreboard and timer first,since they are easier. If you want take a look to my other posts
I am getting java.lang.NullPointerException error
By JoyBajwa, with 4 replies.
Last reply by danpost, almost 8 years ago:
JoyBajwa wrote...
what do you mean its here private Scoreboard sb ; please reply quick if you ddo youre doing me a favor my project is due today plz help
This line: <Code Omitted>only sets up a field called 'sb' to hold a Scoreboard object. It does not create the object. You must create a Scoreboard object and assign it to 'sb' -- like this: <Code Omitted>
Sidescrolling jerky background scroll
By Paul12345, with 5 replies.
Last reply by Paul12345, almost 8 years ago:
I will try . Thank you for helping !
Draw lines bg with pic
By RevoltecX7, with 5 replies.
Last reply by danpost, almost 8 years ago:
Keep main background image in a field. Each act, you will need to create a new image using the main image and draw the rain on it. Example: <Code Omitted>
291
292
293
294
295
296
297
X