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
Need help with creating a rotating turret.
By Griffon305, with 13 replies.
Last reply by danpost, over 13 years ago:
The statement 'rotation += 5;' is the same thing as 'rotation = rotation + 5;. Since we are turning the actor plus five degrees, we want our rotation field to adjust by that same amount so we know the new bullet rotation value.
Score Board
By JetLennit, with 7 replies.
Last reply by JetLennit, over 13 years ago:
Thank you.... but i all ready came up with a way to do it.... if you want to see it you know where to go... but eventually i will probably use that
Does Greenfoot automatically update?
By JetLennit, with 2 replies.
Last reply by JetLennit, over 13 years ago:
Thank you SOOOO much
Need help removing actor when touched by another
By AA123, with 4 replies.
Last reply by danpost, over 13 years ago:
Another way to handle this is to combine the two methods into one, supplying the class to check for in a parameter field. Have the method return a boolean indicating whether an object was found or not. This is how it would be done:
adding sound to my object
By geekykid2013, with 22 replies.
Last reply by danpost, over 13 years ago:
You do not have to double post (unless your request for help goes days without a response -- then, just post 'bump'). There does not appear to be anything wrong with the Turtle class code as far as the 'canSee' method call. Maybe the Animal class code was altered (possibly by accident). Please show the code you have in the Animal class.
setting up my kinect for xp
By muscipula666, with no replies.
I'm following your instructions on setting up xp using your drivers at this page. http://www.greenfoot.org/topics I have installed sp2.and sp3. The cpp library installs as well as the .net stuff. But when I get to openni-win32.msi I get an error 'there is a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personel or package vendor.'
Missile Swerving
By GreenGoo, with 2 replies.
Last reply by danpost, over 13 years ago:
No traffic control system is perfect. Even controlling the interaction between two vehicles involves not just the state of the two being close to each other, but determining how they are approaching each other and turning the correct way to avoid each other takes a bit of Maths. When a third vehicle is introduced into the equation, things really get complicated. Basically, what I am saying is that this is probably not anything a beginner should try to tackle. You could, however, randomly choose a direction and begin turning that way until either a collision occurs or the two vehicle have cl
How to learn more from greenfoot?
By martijn13039, with 7 replies.
Last reply by martijn13039, over 13 years ago:
Greengoo i just say, i have already done that ;) Danpost thx the site looks great
Heath Bar
By GrimCreeper312, with 21 replies.
Last reply by GrimCreeper312, over 13 years ago:
thanks
Fonts other than the default?
By sqwuckies, with 8 replies.
Last reply by sqwuckies, over 13 years ago:
okay. thank you for your help!
Adding an object question
By Gingervitis, with 3 replies.
Last reply by danpost, over 13 years ago:
The code I gave will only affect the initial location of the spawned object, anything it or any other actor does after it is added to the world is being caused by some other code (not this code). Maybe you should show what code you have for your bouncing actor.
Store
By GrimCreeper312, with 3 replies.
Last reply by danpost, over 13 years ago:
You can go one of two main ways: one is to have a new world to perform the exchanging; the other is to use an actor for the store to allow the exchanging in. Either way you will probably need an abstract object class for your inventories; you will create two instances of that class -- one for the store and one for the character. The character can 'carry' its inventory with it in an object inventory field the store will have its also in an object inventory field in whatever class type you use. The inventory data should be stored in arrayList objects and each type object must have a 'price',
Main Menu
By GrimCreeper312, with 1 reply.
Replied to by davemib123, over 13 years ago:
A suggestion is do it via the World class and have buttons as actors.
spawning new cars
By JesusJesus, with 8 replies.
Last reply by JesusJesus, over 13 years ago:
Thank you very much danpost. You are great i works now :D
Game Over Screen
By GrimCreeper312, with 1 reply.
Replied to by Gevater_Tod4711, over 13 years ago:
In the stack trace you can see that the file "heath0" is not found. So the problem is not in the game over class but in the health bar. probably you wanted to load the image "health0.png" or "health0.jpg".
868
869
870
871
872
873
874
X