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
sound problem
By bonana, with 2 replies.
Last reply by danpost, over 12 years ago:
You may have some information tags in your sound file. Try re-saving the file making sure that they are not included.
Simple greenfoot game tutorial
By danbyization, with 2 replies.
Last reply by danbyization, over 12 years ago:
I've already seen that one i want one which is a bit more advanced than that one but still teaches it to you as if you are a complete beginner but teaches to create a complete game from scratch
Trying to let a movie play in Greenfoot
By Gio, with 3 replies.
Last reply by danpost, over 12 years ago:
You might want to have one of the Greenfoot team members look at it. Or, you could upload it on the site, publishing the source code, so we could see what is going on.
must be caught or declared to be thrown
By seelensauger, with 15 replies.
Last reply by danpost, over 12 years ago:
I created a 'Pause' world that when instantiated will create a background image of the current visual state of the calling world. Even though the initial world is not being viewed, it appears as though it is. Also, when setting a new active world, the old world is paused; so, the background of the new world would continue to be the actual view of the initial world until that world is returned to. I added an actor 'Panel' class to the scenario, and had one Panel object added to the 'Pause' world which displays the world 'GAME PAUSED' and 'CLICK TO RESTART'. When clicked on it displays a cou
UserInfo keeps failing.
By Ethan243, with 1 reply.
Replied to by danpost, over 12 years ago:
That is not good. I hope that you are the only one experience that problem.
somehow my codes don't work?
By hades530, with 6 replies.
Last reply by danpost, over 12 years ago:
We know that the code supplied is alright (except for the missing semi-colon at the end of the 'turn' statement). You will have to supply more information and code to solve your problem. Code to supply: the 'atWorldEdge' method; specifying what class it is in the declaration statement of the class which the calling statement (supplied above) is located the entire method that the code supplied above is in the trace from the act method to the method that the supplied code is in (i.e. act>moveAndTurn>move; method-to-method)
reaction to left mouseclick
By bonana, with 10 replies.
Last reply by bonana, over 12 years ago:
fixed the problem myself :-)
Turn-based battle.
By Minion1, with 1 reply.
Replied to by Minion1, over 12 years ago:
Let me explain what I want to happen. As you wander around the world, you encounter random battles. A "battlescreen" pops up, populated with random enemies. The part I need to work on is to have a menu system in place you can select to attack the enemy one time. The enemy will then strike you one time. Then the menu pops up again. It sounds so simple, I haven't got a clue how to begin on this.
Help? How to compare a world in an if statement?
By Apple, with 1 reply.
Replied to by vonmeth, over 12 years ago:
You need to use 'instanceof'. I can't think of another way to do it.
Get location of actor
By student101, with 25 replies.
Last reply by student101, over 12 years ago:
Okay it works perfectly! thank u danpost!
converting strings to numbers
By paul10y, with 2 replies.
Last reply by paul10y, over 12 years ago:
It worked, thank you really much! :D
Question
By KingAbdul, with 2 replies.
Last reply by KingAbdul, over 12 years ago:
Thank you very much...
Greenfoot.getKey().equals("enter")/Greenfoot.getKey().equals("space")
By TopInPut, with 19 replies.
Last reply by Poli, over 12 years ago:
Builderboy2005 wrote...
Greenfoot.getKey() returns null if no key has been pressed. To fix this, try storing the key into a string beforehand so you can test it: <Code Omitted>
thanks
Next Greenfoot version suggestion
By Game/maniac, with 7 replies.
Last reply by danpost, over 12 years ago:
What 'super' call are you using for your world?
Recoloring a image used from a file
By TisLars, with 1 reply.
Replied to by danpost, over 12 years ago:
If all three color parts (red, green and blue) have the same value for all the colored pixels in your images, you could check and replace the colors one at a time. Even if the color parts are fairly close in value, you could check the ranges and do the same. However, it might be best in your case to create the images yourself. You could do this programmatically; or you could use a paint program to fill/draw the areas with different colors and save each different colored/shaped image independently and change the image by setting it to a different filename.
887
888
889
890
891
892
893
X