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 sporn random
By Asoraso, with 32 replies.
Last reply by Asoraso, over 10 years ago:
Thank you realy much ! And Gevater_Tod4711 too.
Breakout help (I would appreciate it :) )
By OhSoFoxy, with no replies.
Okay, so a while ago I posted asking for a code for infinite loop. So how do I alter that code so that every time it resets, the ball is smaller? Here's my code: Board: <Code Omitted> Ball: <Code Omitted> Paddle <Code Omitted> BonusBlock <Code Omitted> and the regular Block: <Code Omitted>
Rmoving Objects
By Lime25Sour, with 2 replies.
Last reply by danpost, over 10 years ago:
Look at the 'eat' method of the Animal class.
Moving object to opposite of world when it reaches one side
By bzhang, with 3 replies.
Last reply by danpost, over 10 years ago:
You do not want to use the current location of the object (by using 'getY') to limit the random number generation. If 'getY' returns '0' then this error will occur as no valid return value would be legal (zero is not positive). You should instead use the height of the world by using 'getHeight' (rather 'getWorld().getHeight()', since the code is in an actor class).
How to make my Container edges like walls
By JasonZhu, with 7 replies.
Last reply by DanPostV2, over 10 years ago:
hey
Help with Container
By JasonZhu, with 2 replies.
Last reply by JasonZhu, over 10 years ago:
That is exactly what i wanted, thanks alot
Taking in keyboard/user input?
By Yedya, with 2 replies.
Last reply by Yedya, over 10 years ago:
thanks
Change Mouse Location?
By shrucis1, with 3 replies.
Last reply by shrucis1, over 10 years ago:
Thanks guys! This really helps me out!
When mouse is clicked button change for "3 seconds"
By Yedya, with 4 replies.
Last reply by Yedya, over 10 years ago:
Thanks alot! Works perfect! How can I + your rep?
How to getRotation() of an object
By JasonZhu, with 23 replies.
Last reply by JasonZhu, over 10 years ago:
Come to think of it, isn't that exactly what you suggested?
Null Pointer exception
By Banginwithflavor, with 11 replies.
Last reply by Banginwithflavor, over 10 years ago:
Excellent!!! Thanks for teaching me how to do that!
[Beginner] How to change speed/transparency with obj. collision
By eladage, with 4 replies.
Last reply by danpost, over 10 years ago:
If you do not want the object to be removed from the world, change the 3-line code above to: <Code Omitted>
Issue with collision script
By penorzilla, with 1 reply.
Replied to by Entity1037, over 10 years ago:
What you essentially want in a collision detection method is the ability to prevent the player from going into walls at all. This can be done by alligning the actor agenst the object if it touches it. It would also be better if you detect for actors at every cell in the area the actor is about to move into. This way, you can detect the actor first, and then move the player agenst the actor instead of letting the player move normally which could cause the player to move into it (if he's going fast enough) and glitch like you described. I made a completed scenario with good hit detection that us
I need help with movement
By Stylow, with 5 replies.
Last reply by shahparacha, over 10 years ago:
I thing u have to do it again and do it other way :)
Buying Weapons + Not shooting laser beams?
By M4xin8or, with 1 reply.
Replied to by danpost, over 10 years ago:
As far as laser v bullet shooting: laser shooting happens when a bullet is created every act method while bullet shooting will skip several act methods between each bullet creation. This is usually done by adding a shot timer that increments every act. When the timer reaches a certain value, create a new bullet and reset the timer. You can add a boolean field to your actor to allow creation of the pop-up; however you will also need two dual conditional 'if' statements to run accomplish what you want. If 'atLocation' is a method (or condition) that determines whether the actor is on the s
756
757
758
759
760
761
762
X