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
Zeitzähler Timecounter
By FordScorpio, with 12 replies.
Last reply by schetefan24, over 11 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 11 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 11 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 11 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 11 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
Using variables between classes
By GreenGoo, with 2 replies.
Last reply by GreenGoo, over 11 years ago:
Thanks a lot, I just couldn't remember.
How Do I Animate An Actor?
By guttridgeb, with 4 replies.
Last reply by danpost, over 11 years ago:
Gevater_Tod4711 wrote...
The second problem is that you try to compare the two images using == but this only works for int, double, char, ... not for objects.
That is not exactly true. It does work for objects also, but they have to be the exact same object (referencing the same instance of a class). Look at the code I provided above, at all times after the constructor is executed, the set image IS either 'image1' or 'image2' and the checks for them will work. The problem occurs when you try to compare something like 'getimage()' with 'new GreenfootImage("turtle1.png")'. Even if the
Side-Scrolling for Dummies
By LordNemocyr, with 6 replies.
Last reply by LordNemocyr, over 11 years ago:
*Appreciate*
how to move ghosts randomly, where you're not allowed to control them?
By gquach, with no replies.
i was given commands, treeToRight(), treeToLeft(), treeBelow(), and treeAbove() i wanted the ghost to move separately later on, after hitting a tree above but can't, how can you do it? here's my code: <Code Omitted>
Can you access variable information between actors by defined actors?
By Entity1037, with 2 replies.
Last reply by Entity1037, over 11 years ago:
I can work with that. Thanks!
Null Pointer Exception That Doesn't Make Sense
By Entity1037, with 8 replies.
Last reply by Entity1037, over 11 years ago:
Nice. : )
Scenarios on OUYA?
By erdelf, with 4 replies.
Last reply by erdelf, over 11 years ago:
I think that should work, but I am waiting for the arrival of the ouya since the end of the kickstarter session
Checking if there is an actor in the world
By GreenGoo, with 6 replies.
Last reply by FlyingRabidUnicornPig, over 11 years ago:
Your welcome
Ziel
By Fordscorpio2, with 5 replies.
Last reply by Fordscorpio2, over 11 years ago:
greengo : Yes your second idea is right:D
841
842
843
844
845
846
847
X