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
How to draw a Polygon ?
By Clem, with 2 replies.
Last reply by Clem, over 13 years ago:
The drawing works, thanks a lot !
i get an error when trying to view scenarios on the website.
By tylers, with 2 replies.
Last reply by tylers, over 13 years ago:
It still dont work when i do that. Sorry it been a long time just that i've haven't had a chance to fix it until now.
Gravity and Ground Help
By GrimCreeper312, with 1 reply.
Replied to by Gevater_Tod4711, over 13 years ago:
Maybe
my Operation: Crashtest game
can help you. If you have a look at the world classe getMaterialAt or getMaterialNumberAt that may help you with the ground detection. For jumping and falling you should have a look in the Hero class. Especally the methods for movement and the setLocation methods.
Help Please
By GrimCreeper312, with 6 replies.
Last reply by GrimCreeper312, over 13 years ago:
it was a corrupt png file
how to pause a timer
By MBX5, with 10 replies.
Last reply by Kartoffelbrot, over 13 years ago:
Or you only implement a boolean variable called break. IF the game should be paused you set it to 'true'. annd the act-method of the timer will only work then, like: <Code Omitted>
I need to make my stick man jump on to different obstacles
By SwaliG, with no replies.
So basically there are lots of different types of landing you could jump on which are invisible clouds which are seathrough and you go straight through them and a normal one where there is just a block.Also there is a special one which will either give you a certain amount of coins or give you a boost to get a lot higher
Null Pointer Exception with danpost's ScrollWorld
By FlyingRabidUnicornPig, with 7 replies.
Last reply by FlyingRabidUnicornPig, over 13 years ago:
Thanks!
Following problem
By flopa92, with 18 replies.
Last reply by danpost, over 13 years ago:
It should be '
getWorld().
getObjecs(lift.class)'.
not reseted variabels after pressing the "reset"-button
By schetefan24, with 5 replies.
Last reply by schetefan24, over 13 years ago:
right idea... it's static... in an earlier version I needed the variabel to be static, because I tried to set it from an actor class (it failed, now it's running on another way) thx, now I can clean up the code :D (I will have to hand it in, because it's a school project)
Zeitzähler Timecounter
By FordScorpio, with 12 replies.
Last reply by schetefan24, over 13 years ago:
which error message? I think that you are checking a coordinate out of the world in the moment when you crash the wall (however it looks like) look in your code for a statemant that adds something to your position and is checking what there is auch gerne nochmal auf deutsch ;) ich geh mal davon aus, dass deine Wand am Rand der Welt ist. wenn du in deinem Quellcode jetzt irgendeine Passage hat, die deine aktuelle position verwendet und noch etwas dazu addiert (oder abzieht), dann kann es passieren, dass er eine position außerhalb der Welt aufrufen möchte, was zwangsläufig zu einem Ab
Need Help Handling Collisions
By gajurgensen, with 2 replies.
Last reply by gajurgensen, over 13 years ago:
I just realized I forgot to add something to my original post. I use methods like 'setRealLocation()' and 'getRealX()' because my game scrolls, and I use 'realX' and 'realY' as my real coordinates in the game and regular x and y just as the position on the screen. Not really relevant to my problem, just to understanding the code.
CHALLENGE 1 | April 2013
By Game/maniac, with 125 replies.
Last reply by MatheMagician, over 13 years ago:
I was never planning on doing a labyrinth. It was just as an example of what I might do.
getY(), Nullpointerexception error
By erdelf, with 25 replies.
Last reply by erdelf, over 13 years ago:
oh, I already tried this and it is almost immediatly. I will rewrite it to check the time difference Edit: it is returning a key every 32 or 33 Milliseconds I adapted the code to this, but it still seems to not work
Search Array Lists
By JetLennit, with 1 reply.
Replied to by danpost, over 13 years ago:
What type of elements does the array hold? are you looking for a specific element in the array? You may want to look at the Java.util.List API documentation to see what methods are available.
Variables between different worlds
By mattjames, with no replies.
Hi guys. I have been trying to get a menu to work that when you select an option it gives you a specific object on the game world. The button is in one world and the object that I want affecting is in another world. Having looking at and followed the tutorial on importing variables from classes, it tells me that the button cannot be cast to the other world. Has anybody got any code which will help me with this? Thanks
848
849
850
851
852
853
854
X