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 with setting font?
By harini001, with 1 reply.
Replied to by danpost, over 9 years ago:
First off, 'new' should be a word by itself (not concatenated with 'Counter...'). The first line should be: <Code Omitted>This is provided you have something like the following line within the class (outside of any methods): <Code Omitted>Next, the Counter object does not (unless you added one or one is supplied that I am not aware of) a 'setFont' method. Maybe you mean to set the font of the image of the Counter object (the GreenfootImage object set to the Counter actor). There is a 'setFont' method that belongs to the Greenfoo
Start next round when there are no enemies left
By RickKoekkoek, with 2 replies.
Last reply by RickKoekkoek, over 9 years ago:
Thanks it worked! i didnt know you could use an act method in the world class.
Help!!!!
By KyrenD2, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
It's like that: If you have more than one checkpoint (if you only want one, you can simply use a boolean which makes it a little bit easier): <Code Omitted>
Building from another class
By Gormatrax, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
Why do you need this Main class? Why don't you use the scene in the scene class itself? Not sure what your errors are, so I don't know if it could cause it, but if you don't want to manipulate the strings after the scenario started, you can use an array: <Code Omitted>
Is There A Way To Get Characters To Speak?
By BrantnerGrace, with 7 replies.
Last reply by Super_Hippo, over 9 years ago:
Then the easiest way would probably to add a separate class for it. It could look like this:
Font
By Nosson1459, with 6 replies.
Last reply by Super_Hippo, over 9 years ago:
Oh, that's great. I didn't see the new version yet.
Just curious, why does Greenfoot.setLocation(getX(), getY()+1) make it go down?
By LakeOtis, with 4 replies.
Last reply by LakeOtis, over 9 years ago:
davmac wrote...
Actually, I'm curious what you expect this to do? (Did you mean you would expect it to cause an actor to move
up
)?
Yes, I thought that adding to the 'y' variable would make it move up and vice versa.
Why is my Greenfoot not compiling and crashing often?
By mehanix, with 2 replies.
Last reply by Nosson1459, over 9 years ago:
I also noticed the problem of Greenfoot sometimes not compiling. When this happens I close Greenfoot then reopen it and it compiles. As for failing to save to disk, this only happens to me when I try saving to a network and is disconnected for the moment but is usually connected.
Player Actor facing mouse similar to Hotline Miami
By Tezzsyhr, with 8 replies.
Last reply by Nosson1459, over 9 years ago:
Tezzsyhr wrote...
but the part I'm stuck on is the actor facing the mouse. If the mouse is stationary, the actor stops turning to face it. Is there a way to get the actor to always face the mouse regardless?
So to answer your question the reason it happens is because YOU added in an if to purposely make it happen, all this if does is make that happen. The if to remove is the one mentioned above. <Code Omitted> when I removed this if it worked fine.
High Scores
By Nosson1459, with 9 replies.
Last reply by Nosson1459, over 9 years ago:
Super_Hippo wrote...
Make an unbounded world and just add all. Then you need a way to scroll down, so move all objects upwards. You can also change the scoreboard, so more results are fitting on the screen.
I guess so, but I was looking for something like the way "bourne" did it, which I guess I can just look at his code.
Btw, for testing purposes, you can check the highscore table in Greenfoot, too. Press Ctrl+Shift+P to change to name, run the scenario to get the score for this "player", then change the name again and so on. This way, you can fill the highscore table offline
Running animation?
By N00balert, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
The array could look like this: <Code Omitted> Then you can have an int field. Whenever the animation should run (when the right key is pressed), increase this field and set the image: <Code Omitted>
Greenfoot wont load
By Valiworld, with 1 reply.
Replied to by davmac, almost 10 years ago:
See
this discussion
. (Remember to select the "other" category for discussions which aren't about programming; I've changed the category for you).
Greenfoot stalled on splash screen
By MrBradley, with 2 replies.
Last reply by MrBradley, almost 10 years ago:
I do indeed have the latest nVidia driver. I will roll back 1 version. Thanks.
Set target location for an Actor in a Scrolling World
By Super_Hippo, with 2 replies.
Last reply by Super_Hippo, almost 10 years ago:
Great, I just needed to change line 17, 18 and 25 without adding any method or anything. Thank you very much! <Code Omitted>
Need help with sharing variables across actors
By WhiteWolf37, with 1 reply.
Replied to by Super_Hippo, almost 10 years ago:
What are you trying to do?
400
401
402
403
404
405
406
X