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
「チュートリアル1:Greenfootとの対話」で最初からエラーが起きた
By funadesu, with 1 reply.
Replied to by funadesu, over 12 years ago:
報告: Greenfoot\scenarios\wombatsを自分のユーザーのドキュメントにコピーして読み込んだらうまくいった。
gif images
By Greenfootnoob, with no replies.
i have a gif images of 6 frames. can anyone give me the procedure on implementing this image in greenfoot?
How to make a text box whit questions and response options
By BasseQ47, with 12 replies.
Last reply by BasseQ47, over 12 years ago:
her is a pic of how my Greenfoot setup looks like
Greenfoot-Scenarios on Android Devices
By dibo, with 35 replies.
Last reply by dibo, over 12 years ago:
Sorry, currently I am not working on droidfoot.
Shield
By GamesGrinder1998, with 3 replies.
Last reply by GamesGrinder1998, over 12 years ago:
JetLennit wrote...
What code do you have so far?
my game is like galaga/space invaders....tell me which classes will be helpful for the code
Stop one object for specified time
By Draggondroppings, with 9 replies.
Last reply by Draggondroppings, over 12 years ago:
Woah!! I really appreciate your work! I am a student and cannot use the great improvements that you have introduced here. I will use the code that causes the Fly to stay on the Cactus though and throw back in my silly sounds. Thanks again, Paul
Reading many Intergers in one line of input
By JasonZhu, with 10 replies.
Last reply by JasonZhu, over 12 years ago:
I will show 2 solutions based on input values on a
single line
. One with a fixed amount of integer values and one with unknown amount of integer values. In both cases, rather than complicating the matter by accepting the input as a String and using the split() method to split the values between any spaces (" ") then having to parse the Strings back into Integers like I had done on my posts above, this is what I did: Fixed number of Integer input values.
The following is a remake of my above code because I realized that I needed a fixed number of input variables
:
Steam Group
By JetLennit, with 16 replies.
Last reply by JetLennit, over 12 years ago:
Anyone else interested?
How to get an OK Button?
By Rudolf, with 12 replies.
Last reply by danpost, over 12 years ago:
Maybe the last method in
this example
might help.
Error..
By mcGreen, with 18 replies.
Last reply by mcGreen, over 12 years ago:
The problem is that the boolean "onGround" is false for one or two act-cycles while walking. I dont know why it is and if you do not either its not really that important. You really helped me here danpost
Using Y position values from other classes
By qwakery, with 8 replies.
Last reply by Super_Hippo, over 12 years ago:
Actually, it is useless to use them as two classes since you can decide in the constructor, which color it should be and in which team he is. So something like <Code Omitted>Or use int instead of boolean if you may want to use more teams later. Add a Counter to the world like this then. <Code Omitted> To jump, you can orientate on this code. (not tested, coul
Rain drop game, removing objects that fall to the ground
By Akimb, with 17 replies.
Last reply by Akimb, over 12 years ago:
Works now, thanks. :)
Strange lag?
By Unicus, with 7 replies.
Last reply by Unicus, over 12 years ago:
The lag is gone now; If I change the code to the second one, it keeps removing and adding the object gameover, so I guess I'll leave it as it is. It no longer fills my memory, so it's ok. I just published the game (beta version still), so if you want to take a look, you can find it here:
http://www.greenfoot.org/scenarios/11355
adding a shield
By davemib123, with 31 replies.
Last reply by GamesGrinder1998, over 12 years ago:
vonmeth wrote...
Add checks for that boolean. If that boolean is true, don't let certain things happen (like take a hit). For example to make it so enemy fire doesn't harm your Hero. First make your boolean shieldActive static.
Can't get powerup to appear on screen
By GamesGrinder1998, with 34 replies.
Last reply by GamesGrinder1998, over 12 years ago:
danpost wrote...
GamesGrinder1998 wrote...
danpost wrote...
With a 'lifespan' of 400, maybe about 7 to 8 seconds, if your scenario is running at normal speeds (about midway on the speed slider).
ok, if i want to implement a shield powerup, can i just use setImage a new image if a fireball collects it and then the shield starfighter can just eat the enemies bullet, if so, what could the code look like
It would make more sense to have a separate actor for the shield. The starfighter object should have a field to reference it when it is active (null when not). If the collision code
696
697
698
699
700
701
702
X