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
Help Making a object break up to other objekt/images
By nc-munk, with 15 replies.
Last reply by danpost, over 11 years ago:
Like if your class was called Fragment, in the block of code headed by this line: <Code Omitted>
Can't export program as application Urgent!
By Zzimon, with 1 reply.
Replied to by Zzimon, over 11 years ago:
Fixed, my worlds were too big for it to work with the applet format.
Selecting characters and switching them with others
By Zzimon, with 186 replies.
Last reply by Zzimon, over 11 years ago:
Fixed it, phew. Just had to make my world smaller like you said and it worked, I think it was because the heap space error thingy that it just went grey and it refused to show any info so I made my world into a 7x7 instead of 20x10 and then it worked. Thanks for saying that when you tried it out, else I wouldn't have known :)
How to add color values to an existing color?
By Entity1037, with 1 reply.
Replied to by Zamoht, over 11 years ago:
Something like this I believe. Color color = image.getColorAt(x,y); Color newColor = new Color(color.getRed(), color.getGreen()+40, color.getBlue()); image.setColorAt(x,y,newColor);
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
689
690
691
692
693
694
695
X