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
How to I make an Actor disappear if it touches the bottom of the screen?
By IanWasHere, with 6 replies.
Last reply by mikemen, over 10 years ago:
Absolutely working!
Help Fixing Error
By ZoeSolosobal, with 2 replies.
Last reply by ZoeSolosobal, over 10 years ago:
Thank you so much!! I have been trying to figure it out for a while.
Pseudocode for an if/else statement that makes an instance appear to change colors as it moves
By alexus2514, with 1 reply.
Replied to by danpost, over 10 years ago:
@alexus2514, please do not post your assignments here. Try to complete the assignment yourself. If you run into difficulties with one part or another, then post what you tried and ask for assistance explaining in detail what the issue is.
Returning NullPointerException
By 123Mike123, with 4 replies.
Last reply by 123Mike123, over 10 years ago:
It's working now, thanks for the help.
If statements in world class?
By grog2, with 12 replies.
Last reply by grog2, over 10 years ago:
Ok, I got it, thanks so much again!
Abstractions
By alexus2514, with no replies.
Create a plan for implementing an abstraction technique in your scenario. The plan should include the following: • Types of variables to use (string or integer) • Variable names • Types of information they will pass to the instances
Problem with Moving Function on Space Invaders Project
By alejandrodr1903, with 5 replies.
Last reply by danpost, over 10 years ago:
alejandrodr1903 wrote...
Well, i saw your code, and i noticed that you declared the aliens inside a Row, wich is a pretty good idea, but, when you change the size of the screen, it only takes the workspace of your original project... if you want to check it, just set another size of screen.
That demo scenario of mine was not meant to be modified by others. The concept of using Row objects to control the movement was just being demonstrated.
Also, when i try to add another line of aliens to it, that last line doesnt move, until another row touches it
You will need to show
Why isn't this code working?
By IanWasHere, with 13 replies.
Last reply by IanWasHere, over 10 years ago:
Thank You SO Much! You've taught me SO much!!!
Shared variables
By zobear888, with 8 replies.
Last reply by zobear888, over 10 years ago:
never mind, having problems with images and posting.
Trouble with if statements
By grog2, with 3 replies.
Last reply by grog2, over 10 years ago:
Thanks, this is really helpful!
Trouble with isTouching
By thomas1998, with 8 replies.
Last reply by Super_Hippo, over 10 years ago:
SnakeHead class line 53. It should be WEST and not WAST. Code works for me then.
I need my actor to spawn after 10 seconds
By mcgougan33, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
Use this in the world subclass: <Code Omitted>
How to see if mouse is being pressed on an actor?
By bobbyjones2000, with 1 reply.
Replied to by Super_Hippo, over 10 years ago:
http://www.greenfoot.org/files/javadoc/greenfoot/Greenfoot.html
There you can find the methods related to the mouse. They are often enough. Maybe you also want to use a MouseInfo method:
http://www.greenfoot.org/files/javadoc/greenfoot/MouseInfo.html
You can use combinations of some methods. I guess 'mouseDragged' could be the method of your choice.
Trouble with booleans
By grog2, with 3 replies.
Last reply by grog2, over 10 years ago:
Never mind, I think something was wrong with greenfoot not compiling or something, I restarted it and it works fine now. Thanks!
Controling one actor at a time
By 123Mike123, with 25 replies.
Last reply by kidlivin, over 10 years ago:
Finnaly I resolved the problem! Thanks for all!! :D :D :D
483
484
485
486
487
488
489
X