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
Adding smokeBomb
By akilino, with 19 replies.
Last reply by danpost, over 12 years ago:
Copy lines 24 through 57 of your bad class and replace lines 46 through 57 in your badGeral class with it. Then, in all subclasses of badGeral, remove the 'act', the 'moveBad' and the 'move' methods. You should already have removed the 'dirX', 'dirY' and 'PASSO' fields from those classes, also. You will need to remove lines 14 through 21 of the badGeral class also.
Slow Run Time: Games with over 50MB
By RockSmash, with 5 replies.
Last reply by akilino, over 12 years ago:
davmac wrote...
What is passing a file argument?
Passing a file
name
argument is what you are doing now. When you call the setImage() method you are giving it an
argument
which is a filename. If you do this, the file must be loaded from disk and the image must be de-compressed each time.
What is cache-ing an image?
In your class do: <Code Omitted> And then you can use: <Code Omitted> ... so instead of using a filename argument, you use an
Problem with my Worlds...
By Firedudeet, with 2 replies.
Last reply by Firedudeet, over 12 years ago:
Ah, thank you for the reply! Overlooking something as obvious as that... feel a bit embarrassed; thought the problem was something else. -.-'
NullPointerException with Sounds
By kasperk22, with 3 replies.
Last reply by davmac, over 12 years ago:
No one?
Your question is way too vague. What do you mean by "does not work" exactly? Your title mentions a NullPointerException, what is the stack trace?
Inheritance Question
By LegendXV, with 2 replies.
Last reply by davmac, over 12 years ago:
I think your inheritance hierarchy looks incorrect, as danpost says. To answer the question though, assuming you are using that hierarchy, calling the super() constructor from Adult calls the constructor of the
immediate
superclass, which is Teenager. However, this constructor will then also generally call the constructor of its own immediate superclass and so on.
please will someone look at my code
By nc-munk, with 19 replies.
Last reply by nc-munk, over 12 years ago:
never mind I have fix it already, but thanks for the help
Problem With Adding a Scoreboard to the World
By Tommy99, with 4 replies.
Last reply by Tommy99, over 12 years ago:
It worked perfectly! Thank you!
is it possible to make a actor/ object move in a specific motion
By nc-munk, with 1 reply.
Replied to by danpost, over 12 years ago:
Yes. But how would depend entirely up to what behavior you wish your actor to have from the time it is added to the world, to the time it is removed.
mover actor cada un cuadrado
By mi.lopezm, with 1 reply.
Replied to by danpost, over 12 years ago:
Remove the 'move();' statement at line 102 in your Sheriff code post above.
Help wiht the finish of the game
By BasseQ47, with 22 replies.
Last reply by BasseQ47, over 12 years ago:
YES Sir that was it now the Question spawns as they should so Cool Thanks
Greenfoot calling an array
By kayuhnjayuhn, with 3 replies.
Last reply by danpost, over 12 years ago:
If you are using the Animal class 'canSee' method, then: <Code Omitted>should check for all cars.
Installation questions
By AlbrechtMehl, with 4 replies.
Last reply by ionel.maftei, over 12 years ago:
I want to install JDk 1.6 for greenfoot. Help me!
Codes for making a Scorecounter
By Neymar.Jr, with 23 replies.
Last reply by danpost, over 12 years ago:
I do not see where you are calling that from the Level subclass.
Class not recognizing another actor
By Daringa, with no replies.
Its a maze game that uses an actor as the walls so it can be reset upon touching the Actor, except it doesn't recognize the actor <Code Omitted>Thanks, Dar
Background Sound
By BD289, with 3 replies.
Last reply by BD289, over 12 years ago:
Neymar.Jr wrote...
Do you men since you made the Menu the background music doesn't stop or pause now???
??????
692
693
694
695
696
697
698
X