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
My game doesn't work online
By footpickle, with 2 replies.
Last reply by footpickle, over 6 years ago:
I did do that. I don't see the problem
How do I make an object stay on top of another object or a platform?
By CieloMungcal, with 13 replies.
Last reply by Blazer, over 6 years ago:
GreenfootImage is not an actor, unless your healthbar class extends GreenfootImage, it will not work Try using this: <Code Omitted>
.jar file window size
By Carbon_Raven, with 4 replies.
Last reply by Carbon_Raven, over 6 years ago:
i meant to run the jar file... I doubt that your idea is working...
Font of text
By pavolbiacko2002, with 5 replies.
Last reply by pavolbiacko2002, over 6 years ago:
Thank you very much! ;)
How do I make a damage using a player to another player?
By CieloMungcal, with 7 replies.
Last reply by danpost, over 6 years ago:
CieloMungcal wrote...
whenever 'slash' hits my hero.. game stops saying theres an error
Insert as 2nd line in act: <Code Omitted>
How do I check if there is already a bomb object?
By BigBoy123, with 1 reply.
Replied to by danpost, over 6 years ago:
Use: <Code Omitted>
null pointer exception
By yeeterboi420, with 2 replies.
Last reply by danpost, over 6 years ago:
Is it possible the actor is not in the world when this code is executed (that is,
getWorld()
is returning a null value)?
starting location - rover scenario
By derklenemo, with 1 reply.
Replied to by danpost, over 6 years ago:
vvv Does this do what you want vvv? <Code Omitted>
how to make a solid object that a player can touch?
By footpickle, with 5 replies.
Last reply by danpost, over 6 years ago:
footpickle wrote...
I don't understand.
Go to and run the linked scenario. Then, click the
Who
button to view the class code of the "player".
How To Remember The Value?
By pavolbiacko2002, with 3 replies.
Last reply by pavolbiacko2002, over 6 years ago:
Ok thank you i will try it
healthbar that changes color when hp hits certain percent
By genju, with 10 replies.
Last reply by genju, over 6 years ago:
danpost wrote...
genju wrote...
bar.fill(percentHealth) doesnt work so im not sure exactly how i'd do that
Its something like: <Code Omitted>
thanks for the help!
actors should not overlap on the walls
By bangtan, with 1 reply.
Replied to by danpost, over 6 years ago:
bangtan wrote...
I have created a maze but how can I make the actors move on a random number without overlapping on the walls
Depends on how you create the maze and walls (as well as world cell size and image sizes).
constant movement and speed
By AnitaAleksic, with 2 replies.
Last reply by AnitaAleksic, over 6 years ago:
Thank you so much!!!
Suggestions!
By Happycrusher764, with 1 reply.
Replied to by Nosson1459, over 6 years ago:
to save score between worlds you can add parameters in the worlds constructor and change levels by setting a new world object with the new parameters
Removing an object after it has been hit 3 times
By bangtan, with 1 reply.
Replied to by danpost, over 6 years ago:
If the objects hitting the actor are removed when hitting, the all you need is an
int hitCounter
field (or
int health=3
). If they remain in the world, it is a bit more involved. Just ask for further assistance.
140
141
142
143
144
145
146
X