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
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
Two Questions PLEASE HELP As soon as possibly..
By Sidstar, with 11 replies.
Last reply by Sidstar, almost 12 years ago:
MatheMagician wrote...
Question 1: right after <Code Omitted> define this variable: <Code Omitted> Then, in the act cycle of your world put: HEy Thanks do you have to put "define this variable" in your cade? Also Where do you put <Code Omitted> This code should work, though I have
Object Chain Movement
By kartikitrak, with 42 replies.
Last reply by danpost, almost 12 years ago:
I updated the demo linked on my previous post. It has two movement methods: a 4-way movement and an 8-way movement method. I have two views: one with dots (4 or 8, depending on which method is being used) to guide the actor and the other with shapes and lines, where you can adjust the thickness of the lines. Also, you can change the 'hand' that the actor uses to guide along the edge of the background color. I added bars (from my Bar class), three for switches and two for adjustable values for the thicknesses of the lines.
getColorAt(int x, int y), coordinates relative?
By erdelf, with 7 replies.
Last reply by erdelf, almost 12 years ago:
Edit: I saw only your first post, thx
Random Numbers quesition
By seal308, with 3 replies.
Last reply by seal308, almost 12 years ago:
k thx
Error in my game
By teikkhim, with 2 replies.
Last reply by davmac, almost 12 years ago:
There is some information
here
.
How do I use getObjectsInRange?
By Gazzzah, with 9 replies.
Last reply by Gazzzah, almost 12 years ago:
Ahhhh, yeah thanks guys
checking if object is in world
By h123n, with 1 reply.
Replied to by davmac, almost 12 years ago:
if (getWorld() != null) { ...
Actor- changing between two images
By Benedict, with 2 replies.
Last reply by Benedict, almost 12 years ago:
thx this helped :)
952
953
954
955
956
957
958
X