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
Mobius glitch
By solo1512, with 1 reply.
Replied to by solo1512, almost 12 years ago:
NEVER MIND! I FIGURED IT ALL OUT.
Pac-Man
By andrewsadik, with 2 replies.
Last reply by MatheMagician, almost 12 years ago:
You could just modify the wombat code from the wombat scenarios so that they are looking for walls instead of rocks, and pacman instead of leaves.
Particle Explosion
By SayMyName, with 1 reply.
Replied to by Duta, almost 12 years ago:
Firstly you're going to have to give a little more information about what you actually want to happen, and when you ask what class you need, the idea is that you write the classes yourself! We can, of course, help if you give a little more detail
High Score Menu
By ChexMex, with no replies.
How would I go about making a high score menu.. I thought of saving the top five high scores of my game to a text file and then comparing them to newer high scores using input and output methods. I just dont really know how I'd go about doing that.
Bee Mover
By solo1512, with 8 replies.
Last reply by solo1512, almost 12 years ago:
Once again, no prob. Play my games, I need views and advice. Stewie and Homer by JayWood860 as well! don't forget.
Menu Screen/ Shop screen
By SayMyName, with 4 replies.
Last reply by SayMyName, almost 12 years ago:
danpost wrote...
You will need two types of objects; one for the background of the menu (which could have a title, or instruction on menu use), and one for the different options of the menu (which could be in the form of buttons, icons, zones, etc.). The best object to use for in-game menus or shop screens is a new world object ('MenuWorld' or 'ShopWorld'). The advantage of using 'Greenfoot.setWorld(new MenuWorld(this))' to produce a new world is that the old world can be effectively 'paused' during the time the Menu or Shop worlds are up and running. The 'this' sent to the Menu or Shop worlds
just starting
By mschwind, with 3 replies.
Last reply by davmac, almost 12 years ago:
There shouldn't be anything else you need to download. What do you see when you open the crab scenario?
Mobius
By solo1512, with 4 replies.
Last reply by solo1512, almost 12 years ago:
Thanks erdelf! I only needed the switching of the methods in line 33.
A question about continuing after exception.
By FrozenForm, with 2 replies.
Last reply by FrozenForm, almost 12 years ago:
Ok, thank you, it's my first time doing something like this.
Null Pointer Exception after song ends?
By Toastminion, with 1 reply.
Replied to by danpost, almost 12 years ago:
This discussion
might shed some light on what is happening.
setRotation() not working
By guvnor, with 1 reply.
Replied to by danpost, almost 12 years ago:
You did it again! You are creating TWO instances of Spider class objects. You adding the second one to the world, and rotating the first one. You need to add and turn the same one. <Code Omitted>
Need Help. Method returning 0
By guvnor, with 14 replies.
Last reply by danpost, almost 12 years ago:
Glad you have it working now! You can remove the 'alive' variable from the spider class, as it is not being used.
Improvements?
By Jesse_Orange, with no replies.
I have finally made my Snake game and it works! :) Now i would like some suggestions for improvement as I feel it could be better. Any and all suggestions are appreciated. The scenario can be found through this link -
Snake Game V2
removing object help
By seal308, with 10 replies.
Last reply by danpost, almost 12 years ago:
@bluewise, what does that have to do with this discussion? Please, in the future, just start a new discussion. Check out
this scenario
that comes with source code (you could have used the search bar with 'credit card checker' and easily have found it).
Adding actors
By nadouda, with 19 replies.
Last reply by danpost, almost 12 years ago:
The bottom post is the code for a world that starts with a gun, and adds a random number of birds to it every 40 seconds. The top post is the code for the Bird class, which moves the birds across the screen toward the right, checking for collisions and (right) edge of world. Also, if four birds make it across the screen, the game ends. I noticed one more problem with the counting of birds making it across the screen. The count variable has to be a 'class' variable, not an 'instance object' variable. As an instance object variable, each bird that makes it across the screen will increment
954
955
956
957
958
959
960
X