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
Health is not going down.
By JackVolp5, with 1 reply.
Replied to by danpost, almost 7 years ago:
Is it your bullet or your player that has health? Why is
healthP2
in the class of your bullet? As is,
each
bullet created will get a
playerP2
field assigned a value of 100 and when a bullet hits a player, it decreases it to 99 and the bullet is disposed of (along with its
playerP2
field).
Compiling in Greenfoot
By TNesler, with 4 replies.
Last reply by TNesler, almost 7 years ago:
My apologies. Not sure how it happened, but I was able to recompile the Trick the Turtle example and it works now. I will look for the termination option when I encounter this problem again.
Get object at location
By Randomness, with 1 reply.
Replied to by danpost, almost 7 years ago:
Provided the actor is actually there: <Code Omitted>You can give more specifically what type of object to look for by replacing "
Actor.class
" with some subclass of the
Actor
class.
Error when bullet istouching and set Hp on enemy
By dev4ltar, with 6 replies.
Last reply by dev4ltar, almost 7 years ago:
thanks, will try :D
How to use the new Font system???
By Spielkind710, with 1 reply.
Replied to by danpost, almost 7 years ago:
Spielkind710 wrote...
I don't know how to use that new font system they integrated in 3.1. I tried to import the classes Font and Color but there is no class to import with these names. Thank you for your help
Oh, but there is and you probably already have them imported -- through the
greenfoot
package. Refer the the greenfoot classes documentation.
Moving Scenery NullPointerException
By The_Beast0007, with 2 replies.
Last reply by The_Beast0007, almost 7 years ago:
!AAARGH!! IS IT REALLY THAT SIMPLE I HAD BEEN TRYING TO FIGURE IT OUT FOR OVER 3 HOURS!!!!!!!
YAY! But thank you once again danpost for saving me when I was going to uninstall greenfoot.
Bounce off a round player
By Randomness, with 83 replies.
Last reply by Randomness, almost 7 years ago:
I have only one player class so I can't remove the turn(180) just in one player.. edit: I think I fixed it!
sound loop issue
By qwe, with 3 replies.
Last reply by danpost, almost 7 years ago:
qwe wrote...
Iv'e tried that, but i keep on receiving errors. How else can I do it?
What errors are you getting? (copy/paste in entirety)
Moving Scenery Troubles
By The_Beast0007, with 2 replies.
Last reply by The_Beast0007, almost 7 years ago:
YAY! It worked, thank you so much danpost. I had no idea about the bounded option for worlds!
Bullets travel in a spiral
By tehbestcoder, with 1 reply.
Replied to by danpost, almost 7 years ago:
tehbestcoder wrote...
So I want the bullet to turn 18 more than last time when a new one it is created so it becomes a spiral but it doesn't work. I think it won't work like how i coded but i don't know how to make it work. << Image Omitted >> << Code Omitted >>
This was already discussed
here
.
Predicting text bounds
By Zamoht, with 4 replies.
Last reply by Zamoht, almost 7 years ago:
I did look at your TextImage solution, which works very well with AWT, but well AWT seems to be the solution and the problem at the same time.
Bullet travel in a spiral path
By AttackTheMOON, with 2 replies.
Last reply by AttackTheMOON, almost 7 years ago:
Thank you @danpost It works how I wanted it to!
How can a enemy (not the player) move only on the y axis?
By pleasetroll, with 3 replies.
Last reply by danpost, almost 7 years ago:
pleasetroll wrote...
Always when Mario hit him Bowser should change his position on the y axis to a random one...
Do you want him to move gradually to a new location or just teleport there?
Subtracting a value from a variable
By CosmicCaleb, with 9 replies.
Last reply by danpost, almost 7 years ago:
I was going to add the following to the class: <Code Omitted>so the missile has an initial image.
Health Doesnt Go Down Decrease The Number
By ErnieBoi, with 1 reply.
Replied to by danpost, almost 7 years ago:
ErnieBoi wrote...
Health doesnt go down when monster touch champion man battle boi << Code Omitted >>
Try to "Find" the variable name "
health
" among your classes, where it refers to the health of your champion. Let us know where it is found, anywhere except line 12 in the Champion class.
219
220
221
222
223
224
225
X