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
Trying to make something disappear when I click the mouse on it. Help?
By Kiara, with 2 replies.
Last reply by Kiara, over 11 years ago:
yay! It worked! Thanks, Danpost!
POLL INFO COLLECTION
By Game/maniac, with 21 replies.
Last reply by danpost, over 11 years ago:
Added code at the end of the macro to sort the list of scores from highest points to lowest.
Sharing without using greenfoot?
By FlyingRabidUnicornPig, with 6 replies.
Last reply by FlyingRabidUnicornPig, over 11 years ago:
Alright, like I said, not that big of a problem, besides that I'd like to make some updates from schol
Problems with detection
By JetLennit, with 13 replies.
Last reply by danpost, over 11 years ago:
You can also set the speed to zero when at the highest location: <Code Omitted>This wil remove the delay between the time the "space" key is released and the player starts to fall.
java.net.socketexception: network is unreachable: connect
By tylers, with 1 reply.
Replied to by tylers, over 11 years ago:
Not if we are allowed to do this but.... Bump
What's wrong with my code?
By FlyingRabidUnicornPig, with 27 replies.
Last reply by danpost, over 11 years ago:
The Ground object reaches 10 pixels lower than the Spike object does. So, with the offsets you are using to locate the objects, the Ground object is found while the Spike object is not. My suggestion is the do this in the Spike constructor: <Code Omitted>and then add five the the y location you add the Spike object into the world at.
Restart Method
By JetLennit, with 3 replies.
Last reply by FlyingRabidUnicornPig, over 11 years ago:
well, at least now you know.
How to take multiple hits?
By OxiClean, with 2 replies.
Last reply by OxiClean, over 11 years ago:
Thank you danpost, you've helped me on several issues, when I upload this project I'll make sure to give you some deserved credit!
why does my for-loop create only one object instead of three?
By Joep, with 2 replies.
Last reply by davmac, over 11 years ago:
You create one new spider on line 9: Enemy spider = new Spider(); Then you have a for loop which attempts to add the spider to the world. But if you add an object into the world when that object is already in the world, it has no effect (other than maybe moving the object). You need to put the above line inside the for-loop body.
Pass in a class as a parameter?
By BubbaB, with 1 reply.
Replied to by danpost, over 11 years ago:
I would like to see the block of code that calls this method (the one with 'createObject(c, x, y);').
How to do you declare variable?
By gquach, with 7 replies.
Last reply by danpost, over 11 years ago:
Yes. Similarly, the same are <Code Omitted>But I guess this would mean you barfed it back up!
isKeyDown problem
By Game/maniac, with 10 replies.
Last reply by Game/maniac, over 11 years ago:
thanks :)
Life problems...
By JetLennit, with 19 replies.
Last reply by danpost, over 11 years ago:
I think you will still have to remove aliens from the contactedAliens list when they no longer show up in the currentContacts list. If you do not, then when you contact that alien at a future time, it will not do any 'damage'.
How check if a specific object is still in the world ?
By TomazVDSN, with 4 replies.
Last reply by JetLennit, over 11 years ago:
I know!! This place is the best!
CHALLENGE 1 | APRIL 2013
By Game/maniac, with no replies.
There are no prizes this is just for fun!
I will post a poll scenario at the end of the month, good luck!
Rules
-Do not copy anyone else's scenarios -You are allowed to use the discussion area to get help for your code -You are allowed to use code from demo scenarios, but you have to give credit to however made the demo -You can work in a group but the usernames of the members of the group have to be included in the description -You must include the source code -You must use the Challenge ID as a tag for you scenario -You can do whatever you want with the scenario as long as it does what the challenge asks for -You can enter more than one challenge but only one of your challenges can win -You are not allowed to ask people to vote for your scenario
Beginner
Challenge ID
C1BA13
Challenge Description
Create a game which allows you to fire a projectile that destroys enemies that spawn randomly, you must be able to transform(e.g.move, rotate) the object firing the projectiles.
Intermediate
Challenge ID
C1IA13
Challenge Description
Create a game which has randomly generated obstacles and hazards that could kill you, there has to be a scoring system and an end goal, the game must also have a menu.
Expert
Challenge ID
C1EA13
Challenge Description
You must create a scrolling puzzle game that has a scoring system, a menu, an end goal, a working score board, and multiple levels.
857
858
859
860
861
862
863
X