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
PROBLEMS with using keys to control an actor
By lionkitten, with 2 replies.
Last reply by fejfo, almost 11 years ago:
I don't if it is the problem but in check key press you're if don't have { } try this : public void checkKeyPress() { int speed = 3; if(Greenfoot.isKeyDown("up")) { setLocation(getX(), getY() - speed); } if(Greenfoot.isKeyDown("down")) { setLocation(getX(), getY() + speed); } if(Greenfoot.isKeyDown("left")) { setLocation(getX() - speed, getY()); } if(Greenfoot.isKeyDown("right")) { setLocation(getX() + speed, getY()); } }
Need Help!
By xJesterPROx, with 6 replies.
Last reply by xJesterPROx, almost 11 years ago:
Thanks Guys!!!
Addition game help
By Yukine, with 11 replies.
Last reply by danpost, almost 11 years ago:
Move lines 50 through 55 to right after line 40 (inside the 'if (Greenfoot.mouseClicked(answerbox))' block) You only want to check this when an answer is given.
Greenfoot Does Not Clear Screen
By Kytuzian, with 10 replies.
Last reply by Kytuzian, almost 11 years ago:
Ah, I see. I didn't know that creating a new GreenfootImage() would make it transparent (although now I do see it in the documentation). Thanks for your help
Input Locking Up
By Kytuzian, with 2 replies.
Last reply by Kytuzian, almost 11 years ago:
The issue seems to have resolved itself at this point, but I believe this is the problem because everything else was working except for the keyboard input.
Help with putting a simple line of text into my world?
By Bluephoenix14, with 2 replies.
Last reply by Bluephoenix14, almost 11 years ago:
Thank you Danpost! Everything compiled correctly!
Double Health Bars (as in int double)
By Arbitrage, with 1 reply.
Replied to by danpost, almost 11 years ago:
When working with int values and a division operation is involved, make sure to do it last. <Code Omitted>
How can I say my score counter that one object is in a specific cell?
By Markulu, with 1 reply.
Replied to by danpost, almost 11 years ago:
Sounds like the player ('someone') has to keep track of whether it has eaten food (and possibly how much food was eaten since the last time at the house). Then when at the house, that someone needs to bump the counter for each food eaten this go-around and re-zero the food eaten field.
Stuck!
By gyoshon, with 30 replies.
Last reply by gyoshon, almost 11 years ago:
OK THANK YOU SO MUCH I GOT!!!!!! :>=]
How to make a text box appear
By FelyFret, with 7 replies.
Last reply by FelyFret, almost 11 years ago:
Okay thank you!
Get nearest Object
By ds06, with 14 replies.
Last reply by ds06, almost 11 years ago:
Oddly, this works now too :D Maybe i misspelled. Thanks again for your help!
Question about Greenfoot
By rrose5, with 1 reply.
Replied to by danpost, almost 11 years ago:
This page
of the Java tutorials might help.
HELP PLEASE
By beliuga, with 3 replies.
Last reply by danpost, almost 11 years ago:
Again, I cannot tell where this act method is with it by itself like that. I will say this much, however. It appears you are trying to create and start a new world by changing the background image of the first world. If you are, it is not done that way. It would still be the first world with a different background image; and, the constructor of the second world would never be executed. You need to use 'new background2()' to create a 'background2' world. You can create and set one active using 'Greenfoot.setWorld(new background2());'.
Help with an error? (Illegal start of expression)
By Bluephoenix14, with 3 replies.
Last reply by hhoogerwerf, almost 11 years ago:
nevermind I didn't see he wanted to start a new method. I thought he wanted to make a boolean my bad.
2 if() at the same time?
By xFabi, with no replies.
Edit: Fk it, right after i posted this, i got my solution, omg sorry :D
619
620
621
622
623
624
625
X