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
Problems with shooting objects.
By Camaro, with 12 replies.
Last reply by Camaro, over 12 years ago:
Removed it and it works alright now. ;-)
How can I create a Hangman game using greenfoot?
By Peach, with no replies.
I am trying to create a hangman game with 2 different levels, easy and hard
Can't find variable in either class
By Napler, with 7 replies.
Last reply by Napler, over 12 years ago:
thanks, i got what i need
Checking for another actor isnt in the world
By trias95, with 3 replies.
Last reply by trias95, over 12 years ago:
Turned out my method worked however the method you have shown me is the correct one so i will head back and change it later or at the least, ensure that when trying to check for a class in the world in future, i do it properly. Thanks again danpost :)
Help with accessing variables from another class
By qwertyuiop, with 29 replies.
Last reply by qwertyuiop, over 12 years ago:
Never mind I just changed .isEmpty() to .size() < 2
Some problems with my game
By Alex89, with 5 replies.
Last reply by Super_Hippo, over 12 years ago:
Alex89 wrote...
If I put the enemymovement and shield to private the Zergling sub class has no access to those variables.
In that case, use 'public' instead of 'private'!
Help Removing Scroll Bars?
By allyand17, with 1 reply.
Replied to by danpost, over 12 years ago:
You do not have any scenarios on the site so I will have to presume you mean either in the greenfoot application or in a stand-alone app. In the greenfoot application you can expand by maximizing the window or dragging the edges. (if you cannot expand enough to remove them, then I do think there is anything you can do about it) For a stand-alone, I may have to test it out. But, if it is anything like on the site, you can run the scenario to a point where the largest screen is showing, expand the window to remove the scrollbars and then create the stand-alone.
Using arrays to bring random images into the screen
By samarthj, with 10 replies.
Last reply by danpost, over 12 years ago:
Cannot help without seeing what code you are trying to use. Everything dealing with the fields related to the question and answers.
Chapter 6, Exercise 6.34
By hdeforest, with no replies.
We are working on the Greenfoot book scenarios, and we can't figure out exercise 6.34. We are able to get our "planets" to change color, but after the first time it hits the edge, they turn into squares. Does anyone know how to make it without change the shape of the "planets?" Here is our code: <Code Omitted>
Passing a score from one world to another?
By trias95, with 79 replies.
Last reply by trias95, over 12 years ago:
Its fixed! the scenario is re-uploaded with the fix. What i did was went back to the counter static score method. i made the try again button take you to the start screen and the start button extend counter and set the static to 0 :) Ty for your help man :) Hoping to get an distinction in this assignment :3
Platformer Help
By Galfrea, with no replies.
Hello friends! I was making a simple platformer for my project and have run into a few problems which I hope someone will be able to help with. The biggest problem is that the character / hero that you play as won't land on the platform in which he's supposed to stand on. Obviously I've messed around with the code and it still doesn't work. The code I used it below, any help will be appreciated! <Code Omitted>
Jumping on a simple game
By Nkhurshid2000, with 3 replies.
Last reply by Nkhurshid2000, over 12 years ago:
IT WORKED! Thanks a lot!
How to add a delay to spawning objects.
By Spin3x, with no replies.
nvm
Hi möchte ein fussball spiel programmieren
By mahmudi61, with 3 replies.
Last reply by mahmudi61, over 12 years ago:
public class ball extends Actor { /** * Act - do whatever the ball wants to do. This method is called whenever * the 'Act' or 'Run' button gets pressed in the environment. */ public void act() { { boy1HitIt(); } public void boy1HitIt() { Actor boy1; player=getOneObjectAtOffset(0,0,boy1.class); if (boy1 !=null) { setLocation(getX()-4, getY()); } } } und das ist der spieler was fehlt mir??????? public class boy1 extends Actor { /**
move just one time
By fabio-mateus, with 6 replies.
Last reply by fabio-mateus, over 12 years ago:
works great thank you man:)
709
710
711
712
713
714
715
X