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
Scenarios not running on the website
By asal, with 1 reply.
Replied to by danpost, over 10 years ago:
Your java control panel needs to first allow java content to be shown; as well as needing security level at 'High' (not 'Very High') and 'http://www.greenfoot.org/' needs to be added to the 'Exception Sites' list. All these setting are in the 'Security' tab of the java control panel.
Actor is modifying variable of all actors belonging to the same class, when it should just be 1. Fix?
By moretinshop, with 1 reply.
Replied to by moretinshop, over 10 years ago:
NEVERMIND, found a rogue statement that was setting finishedDialogue to true when it shouldn't be. All fixed.
I have another issue with the bullets I have in my code.
By Cragster25, with 3 replies.
Last reply by danpost, over 10 years ago:
Cragster25 wrote...
where can I find the SmoothMover class, I have looked for it but can't seem to find it. It might be being stupid but could you post a link.
Open up the greenfoot application and load your project. Then, use the menubar and select "Edit/Import class...". Finally, select the SmoothMover class and click on the 'Import' button. As an alternative to using that class, you could just save the original location of the bullet and add a step counter as follows:
How do get variable from another class
By FutureCoder, with 13 replies.
Last reply by FutureCoder, over 10 years ago:
Thanks it works now
Help with running games
By Rugbug_Redfern, with 1 reply.
Replied to by danpost, over 10 years ago:
You need the java security status on 'High' -- not 'Very High'. You also, on the same panel, need to have the checkbox that enables Java content in the browser checked and 'http://www.greenfoot.org/' in the Exception Site List.
Scoreboard on greenfoot website
By UCLLdemi, with 1 reply.
Replied to by danpost, over 10 years ago:
UCLLdemi wrote...
I tried to ad a scoreboard in my game by importing the class greenfoot provides. On the stand-alone it did show the scoreboard but it was empty since it wasn't connected with a server. I thought that, when put on the website it would be solved but now the scoreboard doesn't show at all. Does someone know how to solve this or where the problem might be?
If you are talking about the scoreboard that uses the UserInfo class, then the problem is that the latest updates on java have tighter security and the UserInfo storage server is not accessible to the scenarios on the si
Help with tutorial
By Rugbug_Redfern, with 2 replies.
Last reply by Rugbug_Redfern, over 10 years ago:
Thank you!
Generating falling objects randomly on the X axis
By KrystalLo, with 9 replies.
Last reply by KrystalLo, over 10 years ago:
Oh, I got it working! Thank you so much Dan! I'll probably ask more questions a bit later after I do a few more things with the game. Thank you!
Class removed after creating duplicate
By jeffcia, with 1 reply.
Replied to by danpost, over 10 years ago:
The only way the Crab class would show up in the "Other classes" area is if you removed what class it extended or changed it to something other than Actor or World. Just make sure you have the class extending the Actor class. If you have issues with bringing it back, post the code for the class so we might be able to tell what is happening and why it is not showing up where you want it to.
Array Problem
By Rabe123, with 9 replies.
Last reply by Rabe123, over 10 years ago:
Thank you danpost :)
Bullet Hoses
By ZacBuzzsaw, with 3 replies.
Last reply by danpost, over 10 years ago:
@SPower, I see where you see an assignment symbol ( '=' ) in place of a conditional equality symbol ( '==' ); however, it will never actually change the value there as it was just set to 'true' in a previous line. What this means is that the question does need to be asked. Removing lines 9, 10 and 14 will not change what the code does. Also, a timer is not what ZacBuzzsaw is going to need -- a boolean field is indeed what is wanted (like the 'isShot' field), but the way it is used is incorrect (hence, its name is also misleading). The field should track the state of the "space" key or shou
Using getImage().mirrorHorizontally()
By moretinshop, with 2 replies.
Last reply by moretinshop, over 10 years ago:
Thanks for your help, I ended up using a solution similar to the one found in this thread: http://www.greenfoot.org/topics/200 BTW, lines 11-15 do not work without a method, the linked thread uses a for loop to do something similar.
stopGame problem
By smcgee, with 10 replies.
Last reply by smcgee, over 10 years ago:
I appreciate that - you do great work and so many benefit from your contribution to teaching future programmers.
Why wont this make a triangle?
By flash007, with 1 reply.
Replied to by danpost, over 10 years ago:
For one thing, once the method has completed its execution, the 'bg' variable is lost. By creating a
new
GreenfootImage object, you are not dealing with the image returned by the use of 'getBackground'. but making a copy of the background image.
Problem with Space Invaders!
By Yvonne, with 4 replies.
Last reply by danpost, over 10 years ago:
Yvonne wrote...
I am not sure why the Aliens are not shooting. Is the code wrong?
The 'shoot' method in the Alien class is not being called at all. You should probably have it called from the act method under some random condition.
460
461
462
463
464
465
466
X