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
NullPointerException Error.
By DennisDvD, with no replies.
Fixed...
Help with getOneIntersectingObject
By nc-munk, with 8 replies.
Last reply by nc-munk, over 11 years ago:
thanks
Is there a way to detect one edge of the world with atworldsedge
By nc-munk, with 5 replies.
Last reply by nc-munk, over 11 years ago:
thanks anyway if you have time would you take a look at another post of mine (Help Making a object break up to other objekt/images)
help with animating clara (pacman game)
By dangwang, with 10 replies.
Last reply by dangwang, over 11 years ago:
You are a legend. Thanks so much!!!!
Method drawImage(image,x,y,ImageObserver); not working.
By Entity1037, with 8 replies.
Last reply by Entity1037, over 11 years ago:
Well...... OK then! TIME TO STUDY!!!!
Adding smokeBomb
By akilino, with 19 replies.
Last reply by danpost, over 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 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 11 years ago:
YES Sir that was it now the Question spawns as they should so Cool Thanks
690
691
692
693
694
695
696
X