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
Why does this Keep on giving me a null pointer exception?
By itssemu, with 4 replies.
Last reply by Juno, over 8 years ago:
i was literally going to ask you how to do this but i guess it's answered :) - a guy in your class
Gamepad Help
By BluRogue714, with no replies.
So, i want to implement a gamepad for my little world scroller game. I downloaded both the GamePad Template and the GamePad Tester scenarios. After opening the scenarios, I get a whole list of error messages mostly saying either certain packages do not exist (such as “package net.java.games.input does not exist”) or certain classes cannot be found (like “cannot find symbol - class Controller”). I can’t name specifics and there may also be other types of errors that I have not yet seen mainly due to the fact my computer is literally getting hundreds of error messages whenever I open up ANY of the greenfoot GamePad scenarios. Did I download anything wrong or are the scenarios just in serious need of updating? Any help is appreciated.
How to get a location from a class to another?
By kronama, with 4 replies.
Last reply by Yehuda, over 8 years ago:
It gets the first Object in a (zero based) java.util.List.
How to make a timer?
By FlorianZhu, with 15 replies.
Last reply by danpost, over 8 years ago:
Super_Hippo wrote...
You can try this to display minutes and seconds: (I partially copied it from one of my scenario, so some of it is German. But maybe that's not a problem, because I saw you using the word "nichts" in your last post.) ;) << Code Omitted >>
I think the code supplied might be a bit advanced for FlorianZhu with usage of an array, the Font class and especially using an inner class.
Getting a variable from an Actor class in the World class
By Juno, with 2 replies.
Last reply by danpost, over 8 years ago:
Or, use: <Code Omitted>which is equivalent to: <Code Omitted>This is presuming that exactly one killCounter object is always in the world.
Problem with colinear points
By delijamiki, with 2 replies.
Last reply by delijamiki, over 8 years ago:
I have fixed the problem, thanks for help. The problem was in the position of this block in act method.
Slow down one object at a time?
By MilesChamomile, with 2 replies.
Last reply by danpost, over 8 years ago:
The SmoothMover class or my QActor class (see my Demo Collection) could be used to help in controlling the speed of the actor.
Im trying to add a counter limit and im failing :(
By thomaswillett, with 2 replies.
Last reply by Yehuda, over 8 years ago:
...and what's the problem?
How to make turnTowards inversion
By arthurmadson, with 1 reply.
Replied to by danpost, over 8 years ago:
arthurmadson wrote...
i want to do the reverse of this function turnTowards(x,y); where instead of the sawdich chase the boy it run away from him.
The following would be like the reverse method ("function"): <Code Omitted>Pretty simple -- probably not worth creating a seperate method for.
How to use 2 Gif's in one Actor?
By Ototo, with 19 replies.
Last reply by Ototo, over 8 years ago:
Nvm... Thank you so much ! I Love you !!!
How to check if 2 objects are touching each other?
By Zweeg, with 1 reply.
Replied to by danpost, over 8 years ago:
For intersecting a specific object, use the
intersects(Actor)
method For intersecting any object of a specific class, use the
isTouching(Class)
method.
How to make a you win and you lose in a two player game(can someone help me!!!)
By DawnLight, with 3 replies.
Last reply by danpost, over 8 years ago:
DawnLight wrote...
but how am i going to check if red or blue win??? i've been trying for a few days for now but i can't solve this problem.
danpost wrote...
determine winner by comparing scores
Having problems with a "missing return statement"
By DeRock, with 4 replies.
Last reply by DeRock, over 8 years ago:
Thank you so much, worked perfectly!
Changing the code editor
By VladislavMoldovan, with 4 replies.
Last reply by Yehuda, over 8 years ago:
I have Windows 10 Pro, and I found them here: C:\Program Files (x86)\Greenfoot\lib\bluejcore.jar C:\Program Files (x86)\Greenfoot\lib\extensions\greenfoot.jar
Typing Game: pop() the first word in a stack one at a time
By cycv5, with 1 reply.
Replied to by danpost, over 8 years ago:
You cannot pop the elements from the stack unconditionally if you want the list to retain anything. The command to pop needs to be in an 'if' block or something similar.
279
280
281
282
283
284
285
X