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 Receive an Error Message Whenever I Remove an Actor
By Cirion, with 12 replies.
Last reply by danpost, over 9 years ago:
In your atWorldEdge method, you are only checking to see if the actor is in the world for the first part of the conditions. Because you are ORing the conditionals, you would need to check before each one. Something like this: <Code Omitted>More simply, you can modify the method like so:
Using int array values in other classes
By Smug-iwnl-, with 2 replies.
Last reply by davmac, over 9 years ago:
We need to see more code, I think. I don't see anything wrong with what you've posted (except that stateVotes probably refers to a different variable in both cases).
Projectile problem
By joshuadswa, with 3 replies.
Last reply by joshuadswa, over 9 years ago:
Thx a lot :D ^^ you guys are the best :D
Dependencys
By altercode, with 3 replies.
Last reply by altercode, over 9 years ago:
For instance, the world contains (aggregates) actors. Been poking around - new to java and greenfoot. This program is fantastic at showing some of the simple theory of OO. Using it to help me "teach assist' some of my theory classes - breaking down parts of my topic into very small, simple examples for students to play with. It's not a "programming language class", more of a theory of - class that complements their other classes. Thanks for the poke in the right direction.
Label on Image Hover Event
By Theangryman, with 6 replies.
Last reply by Super_Hippo, over 9 years ago:
I made it using the suggestion in this post:
click here
You have an object in the world for each different thing which can be hovered. (These can be objects of the same class. When creating them, you let them know what their job is.) When it is hovered, you add a new actor to the world. You give this object an image with the text description. When it is not hovered anymore, you simply remove the added actor from the world again.
While problem
By joshuadswa, with 3 replies.
Last reply by joshuadswa, over 9 years ago:
Ok :D thank you very much ^^
If it's facing in a certain direction.
By OKNEM, with 5 replies.
Last reply by OKNEM, over 9 years ago:
Aha. Got it. Needed two equals signs. Thanks for the help! :D
How do you access variables from a different method in the same class?
By SallySanban, with 2 replies.
Last reply by SallySanban, over 9 years ago:
Thank you so much! It really works. :)
Your browser is ignoring the <APPLET> tag
By Pinkfle, with 4 replies.
Last reply by aldrisang, over 9 years ago:
Super_Hippo wrote...
Use Internet Explorer. Deactivate the enhanced protected mode (and also the 64 bit processes for this mode) in the options. Open the Java Control Panel, activate Java (in case it is deactivated) and add http://www.greenfoot.org/ to the exception list. After this, it *should* work for you or at least I don't know what else could be different in my settings.
I did all of this and then opened my exported project in IE, and still got the same thing. The enhanced protected mode and 64-bit stuff was already turned off, Java was already enabled... so I simply added that
New Ball after one Timer Delay
By wueschn, with 10 replies.
Last reply by Nosson1459, over 9 years ago:
wueschn wrote...
@Nosson1459 @valdes Ok, thanks again. I am very happy (and it is a great honor to me) to meet so many experts in this forum that give help on such a high level!!
thanks for the compliment!!!!!
Set background
By Fifilein, with 7 replies.
Last reply by Fifilein, over 9 years ago:
Thank you now it works!
How to paint a circle in Greenfoot
By wueschn, with 2 replies.
Last reply by wueschn, over 9 years ago:
@Super_Hippo Thanks a lot, it works perfect. I just misunderstood the x and y parameter of the drawOval method .....
Movement problem
By joshuadswa, with 6 replies.
Last reply by joshuadswa, over 9 years ago:
Okay thank you very much ^^ have a nice day sir
Boolean value from User Class to World class
By Jillis, with 5 replies.
Last reply by Super_Hippo, over 9 years ago:
Usually line 4 should replace line 5. If you use it in the prepare method before the User is added to the world though, it will never be true. I think you should pass the User object to the new world and add that user to the new world instead of creating a new one. Then you can check if its entry variable is true or false.
How do I count collisions and pass them across actors?
By dcx, with 1 reply.
Replied to by Super_Hippo, over 9 years ago:
First, the score class shouldn't extend the ball class because the score isn't a ball. There are several ways to do it. One would be to save the scores in the world.
391
392
393
394
395
396
397
X