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
Moving on a moving platform
By kartikitrak, with 5 replies.
Last reply by danpost, almost 13 years ago:
I would not be difficult to have the platform move the actor when it moves, if the actor is on it. That way, the actor would still have independent movement on the platform. For the through the floor issue, use a 'for' loop to iterate through the number of individual steps in the move; checking for intersecting objects each step.
Help with Space Invaders
By niklaskar, with 1 reply.
Replied to by ttamasu, almost 13 years ago:
since "Managment" is the super class for all your other objects, it will used the constructor, it will alway set score to zero since it will inherit the Management constructor which will reset your public score variable. Two things I would try: 1) remove the score = 0 form the constructor in the Management constructor 2) change the public score ; declaration to private static score; // score is automatically set to zero cheers Takashi
actor appearing randomly
By Benedict, with 2 replies.
Last reply by Benedict, almost 13 years ago:
thx :)
I'm Stuck Please Help As Soon as Possible!
By Sidstar, with 3 replies.
Last reply by danpost, almost 13 years ago:
Use this statement: <Code Omitted>and add these variable, plus the following method: <Code Omitted>To re-run this timer, just set 'timerOn' back to 'true'.
getColorAT not working properly?
By kiarocks, with 15 replies.
Last reply by kiarocks, almost 13 years ago:
I just realized that The pixels that were not black were getting colored.
Linking broken chains
By kartikitrak, with 8 replies.
Last reply by danpost, almost 13 years ago:
In essence, the speed is a one pixel move. You are looking at the 4-way move method. The 'direction' field carries a value from 0 to 3; 0 = right, 1 = down, 2 = left and 3 is up. The first line in the code you posted breaks the value of 'direction' into the x and y offsets for a move in that direction; if direction = 0 (right), dx = 1 and dy = 0; if 1 (down) dx = 0 and dy = 1; if 2 (left), dx = -1 and dy = 0; and if 3, dx = 0 and dy = -1. The following 'if' block finds the next location to move to if already on the color of choice. The above was basically to clarify what the code was do
getAwtImage() BufferedImage Type?
By shahmeer, with 1 reply.
Replied to by davmac, almost 13 years ago:
Why not just check? :)
removedFromWorld
By USBest, with 18 replies.
Last reply by SPower, almost 13 years ago:
USBest wrote...
Well... My other classes starts with an uppercase... But the class 'World' already exists, and so I called it 'world'. ;) Thank you very much for your help! It works now! :)
Great that it works now! And davmac, you're exactly right: I also use MyWorld sometimes :)
Actor moves to mouse-clicked position, but sometimes he stops moving.
By DMKxD, with 3 replies.
Last reply by DMKxD, almost 13 years ago:
Ty danpost, now the actor reachs the target every time, but sometimes when i click on another location after he reachs the target, he dont moves. cya DMKxD
Menu Buttons
By Kuofish, with 1 reply.
Replied to by tylers, almost 13 years ago:
this might help. <Video Omitted> http://www.youtube.com/watch?v=_rXCs8NYDX4
Where can I find the scenario 'kinect-mirror' ?
By won0c, with no replies.
Where can I find the scenario 'kinect-mirror' which can be seen first on the Kinect youtube video below?? <Video Omitted>
How to change between worlds when editing
By copyrightkid, with no replies.
hello, How can you change between different worlds when making your game. For example when i'm in one of the worlds classes, how can i go back to the previous to make changes, Thankd
How to change between worlds when editing
By copyrightkid, with no replies.
hello, How can you change between different worlds when making your game. For example when i'm in one of the worlds classes, how can i go back to the previous to make changes, Thankd
How do you change the world you are viewing when editing your game.
By copyrightkid, with 5 replies.
Last reply by tylers, almost 13 years ago:
is this what you mean <Video Omitted> http://www.youtube.com/watch?v=_rXCs8NYDX4
Call the method of an actor, where the actor's name is the contents of a string.
By Julian, with 7 replies.
Last reply by Julian, almost 13 years ago:
Thank you both for your help. Without your help I do not thing I would have found "map". But I have discovered after many years of learning new things, that the best way to learn something is to ask an expert. I now have two maps: one mapping graphemes to objects, and one mapping keyboard keys to graphemes. So I end up with the quite interested & complex line... graphemeMap.get(kbdBindingMap.get(key)).play(); If in six months I still understand the above line, I will feel I am on my way to being an expert. Thank you.
960
961
962
963
964
965
966
X