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
Importing an Image
By kartikitrak, with 5 replies.
Last reply by danpost, almost 13 years ago:
Check your calling statement; make sure you are drawing on a GreenfootImage object. If inventorySlots is an object, not the image itself, you need to use: <Code Omitted>
Help..make a menu in first game and a link..
By Andriyanto, with 17 replies.
Last reply by Andriyanto, almost 13 years ago:
tylers : thank you..nothing error again..
Teleporting problem?
By PiercingGoblin, with 13 replies.
Last reply by danpost, almost 13 years ago:
danpost wrote...
I am not sure if this will correct the functionality of it, but it appears that line 48 should be '&&', not '||'. Same with line 67.
I had mentioned this two days ago. The same post continued
danpost wrote...
I think the coding had been made more complicated than need be because of seperate classes (redportal/blueportal) for the portals. You can make them both the same class and add the Color of the portal as a parameter in the constructor of the 'Portal' class -- public Portal(Color color). You can add an instance variable of Portal class to the code declared with -
Adding Actor Button
By BadatCoding, with 10 replies.
Last reply by danpost, almost 13 years ago:
danpost wrote...
Yeah, the mouse checks did that, change the Preview class act() method to: <Code Omitted>I will double-check and make sure it works.
Wan
Snake Game
By Jesse_Orange, with 13 replies.
Last reply by danpost, almost 13 years ago:
Sorry for the slow response. Somehow, I do not think I am recieving all my 'new' notifications; though, they are all showing up in the 'See all' notifications page. Just noticed this today. :+( Evidently, after adding comments, I forgot to include source during update. It is up now! :+)
How to make bullet disappear
By SayMyName, with 8 replies.
Last reply by SayMyName, almost 13 years ago:
danpost wrote...
Just change the statement 'if (atWorldEdge())' to 'if (atWorldEdge() || a != null || b != null || c != null)'
thank you very much, it works now!
Stack Overflow Error - Please help :)
By Jesse_Orange, with no replies.
SnakeHead <Code Omitted> SnakeBody <Code Omitted> This code almost work although the body segments overlap each other and then i get an overflow error. Something in my code isn't quite right but I can't put my finger on it?
Write a Metaclass
By SPower, with 5 replies.
Last reply by SPower, almost 13 years ago:
I understand, thanks davmac!
Greenfoot 2.2.1
By davmac, with 6 replies.
Last reply by SPower, almost 13 years ago:
I really like that you now can look at the line of code where the exception is thrown. Great work!
scrolling background
By Moritz, with 3 replies.
Last reply by Moritz, almost 13 years ago:
sorry for that... I don“t know how to delate that... and I mean s = 5-5 not 5-4
Trying to move a whole class up and down but only one image moves
By fergo2012, with 3 replies.
Last reply by fergo2012, almost 13 years ago:
Thank you very much, I used you code danpost and it's perfect!
Getting an error and i don't know how to fix it
By JMoller, with 8 replies.
Last reply by JMoller, almost 13 years ago:
ah thank you
how to make a moving object stop
By wahaj, with no replies.
if i have object A which is moving and it intersects with object B which is stationary, how do i make it so object A stops when it intersects B
Colision
By n00bleX, with no replies.
Hey everyone, i'm trying to make a game just like BomberMan! But i'm having problems with the walls, my character pass by the wall! how can i do for he stops and don't cross that? Sorry for my bad english.
Creating a color picker
By kiarocks, with no replies.
I'm trying to make a color picker for my game so you can customize it to your liking. I have written this code to try and construct it: <Code Omitted>However, this causes a very bad image which is not complete. What have I done wrong? Note: this gets called with an 80 by 80 greenfootImage
966
967
968
969
970
971
972
X