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
How can I add my High-scores to my Mysql database?
By Rex553, with 3 replies.
Last reply by davmac, almost 8 years ago:
Your question is too broad, please see
these guidelines
for asking questions. In particular, say what part of this of you are having trouble with (or see the "I don't know where to start!" section for advice if you have no idea).
Problem with ball moving
By R0mane, with 5 replies.
Last reply by R0mane, almost 8 years ago:
Thank you it works.
Gamebreaking error and i don't know how to fix it
By Recorsi, with 7 replies.
Last reply by Recorsi, almost 8 years ago:
Thank you :)
Trying to remove two actors at the same time
By Aqurila, with 6 replies.
Last reply by Yehuda, almost 8 years ago:
If trying to retrieve a Ball object (line 17) returns non-null then you don't need to check if there are any in the world (line 19), and if you are not actually doing anything with the retrieved ball then you can just use a boolean method (the one Hippo used).
Space Invaders - pls help DANPOST
By DanPOstLOver, with 2 replies.
Last reply by danpost, almost 8 years ago:
DanPOstLOver wrote...
In my space invaders code I need the aliens to move down when they hit the edges of the screen. I was hope someone could give me some code to help me <3
Please refer to my
Space Invaders Movement Demo
scenario.
How to create a method in java that works like the act()-method in Greenfoot
By bravdwal, with 3 replies.
Last reply by bravdwal, almost 8 years ago:
Okay, thank you Super_Hippo, I'll have a look at it!
Greenfoot bug
By delijamiki, with 1 reply.
Replied to by Game/maniac, almost 8 years ago:
could you give an example please?
Move while boolean is false
By Recorsi, with 2 replies.
Last reply by Recorsi, almost 8 years ago:
Super_Hippo wrote...
<Code Omitted>
Wow that was simple, thanks :)
How do i move an object always to one direction with getX and getY?
By Recorsi, with 4 replies.
Last reply by Recorsi, almost 8 years ago:
Super_Hippo wrote...
Try this: <Code Omitted> move(
Thank you it works :)
Adding an image into the world
By Juno, with 1 reply.
Replied to by danpost, almost 8 years ago:
Juno wrote...
How do i add in an image in the world without it having an actor or class?
You can draw the image onto the background image of the world, however, that would be a permanent change and the removing of it may not be quite so simple.
moving an actor on top of another visually
By Juno, with 2 replies.
Last reply by Juno, almost 8 years ago:
thank you
Why does this have an error at the "List" part of the code?
By itssemu, with 2 replies.
Last reply by itssemu, almost 8 years ago:
thanks this worked!
Problem with ball spawning
By Aqurila, with 6 replies.
Last reply by Game/maniac, almost 8 years ago:
You have put 'if (isRunning)' inside 'if (Greenfoot.mouseClicked(start))', however it must come after 'if (Greenfoot.mouseClicked(start))'
Removing hearts from an health bar
By Kestroz, with 2 replies.
Last reply by Game/maniac, almost 8 years ago:
Continuing from Super_Hippo's solution you could use a stack instead of an array for easier management. I would also recommend encapsulating the hearts inside a class. Here is an example:
Calling a method from an actor to world
By Aqurila, with 6 replies.
Last reply by Aqurila, almost 8 years ago:
No, actually if there is no ball it should stop to create any new balls which spawn because the code is getting executed again because of the timer :D but we finally got a solution
276
277
278
279
280
281
282
X