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
excuse me
By Luthfihabibie, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
Start with creating a new subclass of the world class. Set the width and height of the world and a background image. You could also read
the tutorials
.
How would I make a title screen?
By BubbaB, with 7 replies.
Last reply by danpost, almost 10 years ago:
WillyRed wrote...
Yes also you can use if(Greenfoot.isMouseClick(This()) and that what do the same thing with the same coad he said Greenfoot.setWorld(new MainWorld()) this would allow you to make a start button.
@WillyRed, I cannot find the 'isMouseClick' method in the Greenfoot class. Nor can I find any method called 'This'. My point is that you need to show precise code. Most users are beginners and will get more confused when suggestions such as this are given. I am sure you meant: <Code Omitted>but, others may not know that.
Adding Objects With an Actor
By Wasupmacuz, with 29 replies.
Last reply by Nosson1459, almost 10 years ago:
Similar things have happened to me previously :)
stopped()
By Nosson1459, with 23 replies.
Last reply by Nosson1459, almost 10 years ago:
I got my timer to work (go to
Score Timer discussion
).
Score Timer
By HungryHide, with 28 replies.
Last reply by Nosson1459, almost 10 years ago:
Here is my Timer class:
Changing half of Images
By georgette, with 2 replies.
Last reply by georgette, almost 10 years ago:
Thank you!! Now I can see why it wouldn't work on line 70.
world
By Nosson1459, with 10 replies.
Last reply by Nosson1459, almost 10 years ago:
Oh thanks. (This has nothing to do with this discussion, but it has to do with the Greenfoot website (and you
might
know about it): There is a star next to my user image which gets colored when someone replied/commented in the same place as me, on the star is a number with the amount of new replies there are, my question is: If i have more than 8 replies I feel like it still says 8, when I click on the star at any time it usually only has the last 8 replies so by the new replies even if I never visited them it won't count them in, today I think I had more than 8 replies but it only sai
Problems with counters
By rn42v1r, with 2 replies.
Last reply by rn42v1r, almost 10 years ago:
...well that makes sense, I simply replaced <Code Omitted>with <Code Omitted>and it works just fine, thanks alot :)
Turning by a double
By Tritos, with 4 replies.
Last reply by Tritos, almost 10 years ago:
Okay, now I understand... and my game actually kind of works. It just lags extremely. Thank you very much
How to make certain object become a scroll objects
By Conscience, with 1 reply.
Replied to by danpost, almost 10 years ago:
Conscience wrote...
in my case, i use a scrolling background that continuously scroll even my actor not moving. so what should i do to make a object scroll too ?
My
Scrolling Tutorial
scenario has everything (pretty much) you need to know about scrolling. BTW, your post was a bit too general and did not include any code to work with.
Danpost's light beam class collision help
By Charles1025, with 5 replies.
Last reply by danpost, almost 10 years ago:
Charles1025 wrote...
Thank you Danpost it WORKS!!!!
Glad to be of assistance.
Change image of an object when press "enter" key
By Kazee, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
Use 'else if' instead of 'if' in lines 9 and 14. Right now, if you press enter, seccion is 0, it is set to 1 in line 7, so the condition in line 9 is met and so on.
No clue why this doesn't work
By Kerpuffles, with 1 reply.
Replied to by davmac, almost 10 years ago:
<Code Omitted> Should be: <Code Omitted> The first one sets TurnCount to true, and results in a true condition. The second one checks if TurnCount is true. You could also write simply: <Code Omitted>
Loops/error
By georgette, with 2 replies.
Last reply by danpost, almost 10 years ago:
georgette wrote...
My code compiles without any syntax errors, however, when I attempt to run it I keep getting the following error message: < Error Trace Omitted > < Code Omitted >
In line 11, you have 'Greenfoot.getRandomNumber(01)' for the first parameter. This is always equal to zero and since you are using that parameter for the size of the bubble, you are asking the bubble to have no size (this is why you get the error; you are asking to create an image of size zero which you cannot do). First increase the number from '01' to whatever range (max-min) you want for the bubb
weird error need help
By jrod159, with 3 replies.
Last reply by jrod159, almost 10 years ago:
thank you! it works now :)
418
419
420
421
422
423
424
X