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
My ship will not move backwards and forwards
By coder04, with 5 replies.
Last reply by danpost, almost 11 years ago:
Now, it appears you tried to use code similar to the Ship in my Teleporting Demo scenario. Maybe try something like this for your 'move' method:
My song will not work can fix my code
By coder04, with 1 reply.
Replied to by Super_Hippo, almost 11 years ago:
You create a new GreenfootSound object every act cycle. Of course this new sound doesn't play, so every act cycle another sound starts to play. Put line 17 to line 11 or so.
Advancing in levels
By MeccaMaxima, with 3 replies.
Last reply by danpost, almost 11 years ago:
MeccaMaxima wrote...
Would the limiting value be the time or is it another variable??
It can be a hard-coded value or you can put the value in a constant field and refer to it.
HELP
By BrownBoii333, with 4 replies.
Last reply by Super_Hippo, almost 11 years ago:
Did you try my code? Change the 3000 to something like 170 and see if it works. What I changed was, that the 'else' is in relation to the other 'if' now.
How do you make a rocket move like its in space?
By coder04, with 5 replies.
Last reply by danpost, almost 11 years ago:
You will have to use the SmoothMover class specifically. The QActor class does not currently separate the movement vector from the direction the actor is facing; so, it will not work for what you want.
Fullscreen window in eclipse with LWJGL without the width stretching?
By Entity1037, with 1 reply.
Replied to by Entity1037, almost 11 years ago:
Ugg; I just realized the title should be "without loosing aspect ratio" instead of "without the width stretching" and I can't change it!
How do make a rocket fly smoothly
By coder04, with 1 reply.
Replied to by Super_Hippo, almost 11 years ago:
Why do you create so many discussions about the same topic?
How do you make rocket look like its floating after hitting booster
By coder04, with 2 replies.
Last reply by danpost, almost 11 years ago:
My
Teleport Demo
has a rocket that gradually slows down to a stop. You can check out its code.
How to download the scenarios?
By AbidaKhan, with 1 reply.
Replied to by danpost, almost 11 years ago:
You cannot download any scenario that does not have the "Open in Greenfoot" button. The owners of those scenarios chose not to include the source code with the uploading of them to the site. My Jump and Run Demo scenario which you commented on does allow you to view the source (without being able to download it directly), however. Just run the demo and click on one of the buttons along the lower edge of the window.
Strange... (code below)
By jogit666, with 2 replies.
Last reply by jogit666, almost 11 years ago:
Thanks!
Launching a scoreboard after a collision
By Ben&Sam, with 2 replies.
Last reply by Hersov, almost 11 years ago:
Hello, I am also wondering about this but im spanish so I dont understand any english code, muchos gracias.
Help with fine tuning enemy
By rrose5, with 14 replies.
Last reply by rrose5, almost 11 years ago:
Cool I edited that part now.
[Urgent] How to use Test Driven Development for Greenfoot - Greenfoot Noob
By vked_coder, with 6 replies.
Last reply by danpost, almost 11 years ago:
Maybe adding functionality to add methods and classes automatically when double-clicking on an undefined name might help. The compiler will point out anything missing and you can always use 'System.out.print' to put results of tests to the terminal. It would not be a bad idea to add the aforementioned functionality; but, do not hold your breath (it would only save re-typing the name of the class; unless it put in the arguments as well). Also, this site is designed for beginners, and adding TDD would take away from the benefit of one coding the classes or methods themselves. I myself do n
Calling UserInfo without lag
By Super_Hippo, with 4 replies.
Last reply by danpost, almost 11 years ago:
Yes, the storing and retrieving of UserInfo objects (accessing the database) is the main cause of lag. Once you have a reference to a UserInfo object, getting and setting the fields is like that of any other object.
Level Variable
By DarkSoulDemon, with 6 replies.
Last reply by DarkSoulDemon, almost 11 years ago:
danpost you are a LEGEND THANK YOU
649
650
651
652
653
654
655
X