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
Making a Visual Scoreboard
By SullyFish, with 1 reply.
Replied to by SullyFish, over 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 years ago:
Ohh, that was what you ment! Thank you! And I dont even need my follow-code. :) - Hadis
problem with high scores and 2 worlds
By AIMrOrange, with 6 replies.
Last reply by AIMrOrange, over 12 years ago:
ah thank you very much, havent thought it`s simple as that^^
I think Greenfoot is a bit buggy in this case...
By Facknowhow, with 1 reply.
Replied to by danpost, over 12 years ago:
Never change the transparency of the background image of a world. It is the 'backdrop' of your scenario and should always stay opaque.
It's been a while...
By bonana, with no replies.
removed
How do I stop an if statement?....or should I be using a loop?
By Roz, with 4 replies.
Last reply by Roz, over 12 years ago:
Thank you both SO much for your help! This has been driving me crazy. I did exactly what you said Dan, and it worked. :). Thank you , thank you, thank you!
710
711
712
713
714
715
716
X