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
Danpost please look at my projects
By jasmag21, with 3 replies.
Last reply by jasmag21, over 6 years ago:
danpost wrote...
vinay365 wrote...
PLEASE LOOK AT OUR PROJECT
I am not sure as to which one you are referring. However, both (
Elerun
and
Deer Simulator
) are good, challenging games. Only things I noticed were the following: Elerun: * hitbox for elephant is way too large * balls can spawn too close to elephant (at times) * horizontal wrapping is not directly across the world * could use a game over message Deer Simulator: * could use a game over message
thank you dan you're my god
help with creating a weekly calendar using 2d arrays
By sonali98, with 5 replies.
Last reply by danpost, over 6 years ago:
sonali98 wrote...
i am very confused, do you think you could possibly write out what you are talking about for me?
Put the "-12" back in the last line of code; change the "4" back to a "3" in the
setHour
method; and add another
if
block in the
setHour
method to deal with those
newTime
strings whose length is 4.
Please Help With setScore and getScore
By Sean03, with 8 replies.
Last reply by drewr1122, over 6 years ago:
Why would you need a setScore function? are you starting with different scores on different levels? If you want to add scores, create a function that simply adds an integer of change (in other words an amount of points) to your current score.
how to create a game
By Pablo7, with 1 reply.
Replied to by danpost, over 6 years ago:
Pablo7 wrote...
I'm given a duty to create his own game
I do not know where to start
to create this game, you can help me please
Too vague. Please refer to the
guidelines
for asking questions.
Random Number
By Veeb, with 5 replies.
Last reply by Veeb, over 6 years ago:
You are Ernie, sorry dan im new to all this!
Counter Problem
By Wriggi, with 8 replies.
Last reply by Wriggi, over 6 years ago:
Ok sorry, i have found my error now anyway. Thanks for the help
How to controll the time
By wueschn, with 2 replies.
Last reply by wueschn, over 6 years ago:
Thanks a lot, it works!!
Moving Backgrounds - Question
By wueschn, with 3 replies.
Last reply by danpost, over 6 years ago:
wueschn wrote...
there must be a situation when you see it wandering from right to left and seeing that the background image below is resting. But from beginning on it works perfekt and everything is wandering perfect without seeing something resting in the background ..... That is perfect, but it is not clear to me why it is so perfect ...
I am not sure what you mean by "
image below is resting
". If you want clarification on some point, you will have to be more specific, show all codes used for scrolling (other than the
Scroller
class itself (which should not be modified
howwe get greenfoot on laptop
By mayl2121, with 2 replies.
Last reply by Sean03, over 6 years ago:
here is windows download
link
here is mac download
link
Keep on getting error
By Will5230, with 3 replies.
Last reply by Will5230, over 6 years ago:
That worked Thanks alot guys!!!
Anyone wanna make a game with me so i can submit it to class?
By IamSifter, with 4 replies.
Last reply by danpost, over 6 years ago:
Super_Hippo wrote...
Games are the easiest way for a beginner to practice programming though. At least that's my opinion.
Yes, but one must first become familiar with the basics of the java language and what methods are available in the classes provided in the
greenfoot
package. Looking through the API documentation of the classes should help immensely in the latter, and the java tutorials should help with the former. Then trial and error programming will help in learning what is possible as well as how to accomplish things. This last part can be done while creating your game;
Counter not working
By ckeegan, with 1 reply.
Replied to by danpost, over 6 years ago:
You create a
Car
object, but show a
cars
class. Cannot do anything about the counter until it is known what you are doing there. Remove
act();
from the
Level2
class constructor and then take the first 3 lines in
act
and move them to the
prepare
method.
question about scrolling
By aim_dll, with 1 reply.
Replied to by danpost, over 6 years ago:
aim_dll wrote...
I want my screen to automatically scroll into the according direction when I hover my mouse over the bottum/top/right/left.
Please refer to my
Scrolling Tutorial
scenario. It does not specifically cover mouse-at-edge action, but other than that, it will not be any different.
Contact during the whole time if object1 via object2
By Bolla13, with 1 reply.
Replied to by danpost, over 6 years ago:
Bolla13 wrote...
I want whoever a lobster sees a crab to only get one life ripped off. The problem is that the crab "crawls" over the lobster and has about 5 times contact = lifetime is deducted.
Your solution might work (with some minor adjustments) if not for two issues. The first one is that you probably have multiple lobsters in the world. A boolean field like
hits
would only detect (a) crab intersect any, but unknown, lobster; or (b) crab not touching any at all. That is, it does not track which lobster is intersecting. So, if a 2nd one touches while one is already inte
Hide cursor in Greenfoot 3.5.0 onwards
By AlexDascalu, with no replies.
I am trying to update the code for a Greenfoot game I made so that the mouse cursor is hidden. In previous version I manage to do that with some Swing code but since 3.5.0 switched from Swing to JavaFX that code no longer works. I know how to set the cursor if I have a reference to the JavaFX Scene, and I have found in the source code the GreenfootStage class which extends Stage, but I can not find a way to access the GreenfootStage of the game. Can anyone please help me?
229
230
231
232
233
234
235
X