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
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!
Need help to make an object move
By kasperk22, with 12 replies.
Last reply by danpost, over 11 years ago:
kasperk22 wrote...
is there any advantages of using the turn method instead?
Not much. It just makes it a little easier to code a change in rotation from the current rotation. 'turn' is basically something like this: <Code Omitted>You do not have to tell 'turn' to add the current rotation to the amount to get the new angle, it automatically does it for you.
Actor turning in direction of mouse
By plant, with 9 replies.
Last reply by plant, over 11 years ago:
wow thanks im so happy now!
check if two objects are touching each other?
By trias95, with 3 replies.
Last reply by trias95, over 11 years ago:
OKAY! something has just clicked for me. i can spawn the graphic in the desired location when i touch the power up with the code! <Code Omitted> dont know why i didnt see that before -__- Now just to try to get it to overwrite time to the existing power up. EG if i pick up a power up and it lasts for 10 seconds and during that 10 seconds i pick up another it overwrites the original time. so turning 6 seconds left into 10.
Greenfoot quick launcher did not work
By sanjeevido, with no replies.
Hi guys, I need some help. My greenfoot quick launcher does not work fine.
Circular movement WITHOUT rotation?
By Hadis, with 4 replies.
Last reply by Hadis, over 11 years ago:
Ohh, that was what you ment! Thank you! And I dont even need my follow-code. :) - Hadis
708
709
710
711
712
713
714
X