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
setRotation() not working
By guvnor, with 1 reply.
Replied to by danpost, almost 13 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 13 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 13 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 13 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 13 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 13 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 13 years ago:
Edit: I saw only your first post, thx
Random Numbers quesition
By seal308, with 3 replies.
Last reply by seal308, almost 13 years ago:
k thx
Error in my game
By teikkhim, with 2 replies.
Last reply by davmac, almost 13 years ago:
There is some information
here
.
How do I use getObjectsInRange?
By Gazzzah, with 9 replies.
Last reply by Gazzzah, almost 13 years ago:
Ahhhh, yeah thanks guys
checking if object is in world
By h123n, with 1 reply.
Replied to by davmac, almost 13 years ago:
if (getWorld() != null) { ...
Actor- changing between two images
By Benedict, with 2 replies.
Last reply by Benedict, almost 13 years ago:
thx this helped :)
Publishing is endless. help pls
By erdelf, with 11 replies.
Last reply by mjrb4, almost 13 years ago:
davmac wrote...
Sounds like you have something in there that's not meant to be there...
erdelf wrote...
Ok. I looked after it. It was an archive which was from an old project. the file size was 667 MB
That would be it ;)
Error Code 500
By erdelf, with 6 replies.
Last reply by mjrb4, almost 13 years ago:
In itself, the error (500) essentially just means "the server encountered some form of problem, so your request couldn't be completed." It doesn't mean anything more specific, just that something's gone wrong on our end :-) In the relatively near future a lot of these issues should hopefully go away - we're soon getting a new server with heaps more of everything (especially disk space!)
962
963
964
965
966
967
968
X