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 Removing Scroll Bars?
By allyand17, with 1 reply.
Replied to by danpost, over 11 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 11 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 11 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 11 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 11 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 11 years ago:
works great thank you man:)
Making a Visual Scoreboard
By SullyFish, with 1 reply.
Replied to by SullyFish, over 11 years ago:
There are various actors in there I should point out because its not very clear!!!
Unable to open greenfoot Class API
By hector, with 1 reply.
Replied to by erdelf, over 11 years ago:
temporarily, here is the link to the
online api
for more, the developers should answer
cannot find symbol - method getObjects
By trias95, with 4 replies.
Last reply by trias95, over 11 years ago:
Hmm okay. What im trying to do is that i have two worlds and i need the zombies to spawn from different areas depending on the world they are in. to do this i decided to add an 'if' statement before the spawning code but i need that if to check if an actor specific to each world exists. so for example. i will place a blank actor in the first room called room1check and the if statement needs to see if it is in the world, if it is then it can spawn zombies from location A, B, and C. and if its im room 2 there will be an actor called room2check that if found by the if statement to exist, will all
Help with lives counter
By Rubric94, with 25 replies.
Last reply by danpost, over 11 years ago:
What all will you be tracking the health of? does the class only have one object created from it or multiple objects for the health of multiple things? If multiple Health objects are to be created: Usually either the actor that requires an object to track some state of the actor (like a health bar, score counter, lives tracker, whatever), the actor will create it when it is being created and add it to the world when it is added to the world or the world will create the object first, then create the actor, passing the object to it. That actor should keep a reference to that object (not th
Changing the image of the mouse
By F-L-Undead, with 3 replies.
Last reply by Busch2207, over 11 years ago:
You can define the image wherever you want. That it is scaled to 32x32 is not programmed by me. That's done by the given Toolkit-class from Java.
Sound plays again despite being told not too
By trias95, with 4 replies.
Last reply by trias95, over 11 years ago:
Nevermind, ive got that nailed by putting <Code Omitted> on the world that loads next. Thank you!
707
708
709
710
711
712
713
X