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
This must be first call in construtor
By ddvink, with 3 replies.
Last reply by ddvink, about 11 years ago:
thanks!
Help Please
By mattjames, with 59 replies.
Last reply by mezboycalday, about 11 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 11 years ago:
Thanx!!!!!!!!!!!!
Call to one specific object
By ddvink, with 7 replies.
Last reply by ddvink, about 11 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 11 years ago:
My bad.
Native methods in Greenfoot
By SPower, with 7 replies.
Last reply by SPower, about 11 years ago:
I'll do so, thanks!
One object is enough
By ddvink, with 2 replies.
Last reply by ddvink, about 11 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 11 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 11 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 11 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 11 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 11 years ago:
Thanx very much both of you!!!!
Random Jump
By gramcracker1, with 2 replies.
Last reply by gramcracker1, about 11 years ago:
Very straightforward. Thank you for your help ^_^
Texture Atlas
By tartags11, with 1 reply.
Replied to by JetLennit, about 11 years ago:
Try
this
RPG Game viewport problem
By Tavi, with 1 reply.
Replied to by danpost, about 11 years ago:
My last post in
this discussion
was basically about this. Take a look. It will probably give you some insight as to how to accomplish this.
779
780
781
782
783
784
785
X