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
Snake Game
By Jesse_Orange, with 13 replies.
Last reply by danpost, almost 9 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 9 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 9 years ago:
I understand, thanks davmac!
Greenfoot 2.2.1
By davmac, with 6 replies.
Last reply by SPower, almost 9 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 9 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 9 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 9 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
Updating Score
By BadatCoding, with 4 replies.
Last reply by BadatCoding, almost 9 years ago:
Thank you davmac!
having lifes
By tylers, with 4 replies.
Last reply by davmac, almost 9 years ago:
Like Morran said:
In your Player class, add a "boolean" called "isDead", and add an "int" called "timeToRegenerate"
To declare those variables you'd use code something like: <Code Omitted> As these are to be instance variables, they should be declared inside the class but not inside any method!
helping with a bug in my code
By martijn13039, with 13 replies.
Last reply by davmac, almost 9 years ago:
ttamasu, I think the problem is not multiple objects getting eaten per cycle, but rather multiple objects getting eaten over multiple cycles but before the first one respawns. There's no way to fix this without adding a collection to the concierge class or moving part of the logic to the student class.
making a world scroll vertically
By Flourytub43, with 1 reply.
Replied to by erdelf, almost 9 years ago:
Did you looked at the code of the scrolling scenarios? Maybe you can change it.
884
885
886
887
888
889
890
X