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
java.lang.NullPointerException problems
By Yoshi21137, with 6 replies.
Last reply by danpost, about 6 years ago:
Then, you can remove line 1 in your previous posts. The first line in act can be removed, as well. Also, when it dies, it should remove the health bar from the world, too (first).
scoreboard problem
By Hinokami, with 12 replies.
Last reply by Hinokami, about 6 years ago:
i've asked my teacher about it, it is fixed now thank you
How do i use an if statement to check if a method has been called?
By footpickle, with 10 replies.
Last reply by footpickle, about 6 years ago:
Just realised I had no brackets in my If statement... Whoops.
How to add an object to a different world from an Actor class?
By ThatAsianPixel, with 7 replies.
Last reply by danpost, about 6 years ago:
Maybe have a
static Actor selectedActor
field in the
BattlePage
class and have the
BattlePage
constructor add the actor into its world.
How do I respawn things
By Cris______, with 1 reply.
Replied to by danpost, about 6 years ago:
First, line 1 in the deleting code uses an "isAtEdge(int)" call. What is that? Second, it appears you are using
static
values in your
MyWorld
class that should probably not be
static
. Third, initializing the world values should be done in the world constructor. Once moved, you can use the
run
method to respawn balloons. Forth, line 3 of the
run
method may generate a random value for zero balloons, which would basically leave the scenario in limbo.
Score Counter
By hr17_, with 5 replies.
Last reply by danpost, about 6 years ago:
I think line 32 is the problem (which follows line 31 -- see what it does).
Spawn with a time delay
By hr17_, with 2 replies.
Last reply by hr17_, about 6 years ago:
can you show me an example in the source code?
2048 merge error?
By whattheheck, with 2 replies.
Last reply by whattheheck, about 6 years ago:
Adding the displayValue function doesn't seem to fix the issue. It seems like when squares merge, they get stuck in place
My Code LØØps?
By DecentRug03, with 4 replies.
Last reply by danpost, about 6 years ago:
DecentRug03 wrote...
But I need to have a while loop in there.
Why?
DanPost I challenge you to make a game for me.
By popo88, with 2 replies.
Last reply by danpost, about 6 years ago:
popo88 wrote...
Some kid said that you are the best and now I am now challenging you to make the best game using greenfoot.
I doubt the kid meant that I was the best in the game development department. See my
Games by danpost
collection to see what I mean.
Chapter 2 - Little Crab (Differences between the book and the scenarios!!!)
By pazi2000, with 2 replies.
Last reply by danpost, about 6 years ago:
On page 37, I do not see: <Code Omitted>but I do see: <Code Omitted>
Boss with healthbar
By Yoshi21137, with 30 replies.
Last reply by Yoshi21137, about 6 years ago:
danpost wrote...
Probably the easiest way is to create a method in the Boss class to accept a BossHealth object and then assign it to the field.
how do I assign an object to a field?
Collision and removal between two actors when size is larger than the other
By tudibk, with 11 replies.
Last reply by tudibk, about 6 years ago:
Got it fixed, thanks a lot danpost :)
My game is VERY laggy
By footpickle, with 8 replies.
Last reply by danpost, about 6 years ago:
footpickle wrote...
Oh, so it was making TONNS of unnecessary objects? From my experience, more actors in the world cause more lag because the program can't keep up with the amount of data all the objects are sending? or something like that, I guess...
Well, yes -- anytime you have more than 100 or so actors doing stuff in the world, lag will creep in (due to CPU processing time). However, image processing is a hog on CPU time as well -- and multiple images are created for each
Explosion
object created.
help me please..about how to handle about this error
By ZiadTheVortex, with 3 replies.
Last reply by danpost, about 6 years ago:
Remove the semi-colon at the end of the problem line.
142
143
144
145
146
147
148
X