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
I'm climbing damn high!
By ddvink, with 1 reply.
Replied to by Gevater_Tod4711, about 12 years ago:
You are using a while loop. That causes that your actor climbes up the liane in only one act. If you don't use any loops but just use an if clause your actor will climb up 10 cells every act.
Score Board?
By GameJunkie, with 1 reply.
Replied to by danpost, about 12 years ago:
You are probably just missing some 'import' statements that are needed for some of the objects you use. For example, Color.Black is a field in the Color class; so you need to 'import java.awt.Color;' to have access to it. The 'add' method is a List method, but in itself does not require you to import 'java.util.List'. However, if you use a 'List' anywhere in your code, you will have to.
This must be first call in construtor
By ddvink, with 3 replies.
Last reply by ddvink, about 12 years ago:
thanks!
Help Please
By mattjames, with 59 replies.
Last reply by mezboycalday, about 12 years ago:
matt james need help with my report asap!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! plz email me mez1998@aol.com
How to know which portal?
By ddvink, with 4 replies.
Last reply by ddvink, about 12 years ago:
Thanx!!!!!!!!!!!!
Call to one specific object
By ddvink, with 7 replies.
Last reply by ddvink, about 12 years ago:
That isKey and getKey will do the job! Thnx ;-)
Greenfoot on Windows 8.1
By Zamoht, with 3 replies.
Last reply by Zamoht, about 12 years ago:
My bad.
Native methods in Greenfoot
By SPower, with 7 replies.
Last reply by SPower, about 12 years ago:
I'll do so, thanks!
One object is enough
By ddvink, with 2 replies.
Last reply by ddvink, about 12 years ago:
Thanx very much!!!
Check to see if an actor that is referenced as its parent class is one of the parent class' subclasses?
By Entity1037, with 3 replies.
Last reply by Entity1037, about 12 years ago:
"if (someObject instanceof SubclassName);" should be sufficient. I'm just seeing if the object is a certain class, and if it is, then get certain information and save it in a specific format as a String for an algorithm.
setLocation problem
By ddvink, with 1 reply.
Replied to by danpost, about 12 years ago:
Using 'setLocation(getX(), getY()-getImage().getHeight()/2' every act cycle will indeed make your character go up the screen half its height every act cycle. You need to get a reference to that actor it is following (I will call it 'followed') and use 'followed.getX()' and 'followed.getY()-getImage().getHeight()/2'.
Keylistening out of Greenfoot
By Zamoht, with 4 replies.
Last reply by Zamoht, about 12 years ago:
Okay one more thing. How are things with releases in java? Do I have to do it manually or is there some kind of autorelease behind? I have never thought of this when programming in Greenfoot.
change color of the last character of a text?
By kolozz, with 8 replies.
Last reply by bourne, about 12 years ago:
Without relying on tricks, take a look at the FontMetrics class and its charsWidth method. It can be complicated when using several substrings, but works great for broader applications of the problem. Most of my GUI components in my GUI Components scenario use it.
isTouching vs getIntersectingObjects
By ddvink, with 3 replies.
Last reply by ddvink, about 12 years ago:
Thanx very much both of you!!!!
Random Jump
By gramcracker1, with 2 replies.
Last reply by gramcracker1, about 12 years ago:
Very straightforward. Thank you for your help ^_^
785
786
787
788
789
790
791
X