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 add a random object while the game is running
By Nufaralbu, with 3 replies.
Last reply by danpost, almost 3 years ago:
Nufaralbu wrote...
And how do I move the leaf to a new location? Is there a function?
Get a reference to the eaten leaf. Next, get a random
x
and a random
y
. Then, set a new location (x, y) for the referenced leaf.
When it reaches zero
By SportingLife7, with 4 replies.
Last reply by SportingLife7, almost 3 years ago:
Thank you for the guidance, i figured it out, sorry I forgot to say thank you before.
Is it possiple to build a Flipper / Pinball game with Greenfoot?
By Flipper3000, with 1 reply.
Replied to by danpost, almost 3 years ago:
Flipper3000 wrote...
is it possible to build a flipper Arcade Game in Greenfoot?
There is no reason why it cannot be done in greenfoot.
Help Turning My Race Car
By Horizon, with 7 replies.
Last reply by Horizon, almost 3 years ago:
thanks again so much dude
Needing greenfoot package for use of GreenfootImage in BlueJ
By dcs15, with 1 reply.
Replied to by RcCookie, almost 3 years ago:
It doesn' just work like that - there's a lot more to Greenfoot than the "greenfoot" package. I have made
a tutorial
how to run Greenfoot scenarios in IntelliJ, a widely used Java editor. Maybe that helps you, it will at least give you an idea about how much there is to do. If you are still interested, there are probably ways to run Greenfoot in BlueJ, but it would be quite complicated for sure. Also, Greenfoot actually IS BlueJ under the hood and has the exact same editor, so I don't know what you are trying to achieve here. I
No Compile button
By KHeroux, with 1 reply.
Replied to by danpost, almost 3 years ago:
KHeroux wrote...
I dont see a compile button on my Greenfoot.
Newer versions of greenfoot auto-compile. At the bottom of your class editor, you should see a message. "No syntax errors" will should if the class appears fine to the compiler; otherwise, "Errors found." will display and the location of each will be flagged with a red line number and a squiggle line under problem text (or near it). Hovering the mouse of the squiggle line will pop up a message on the particular error found there. Also, any classes with errors with be diagonally striped in the classes window frame. If a
Help with platform game!
By cake_9098, with 1 reply.
Replied to by danpost, almost 3 years ago:
Make sure your platform images do not have any excess transparencies in them. The player is considered "on" a platform if it touches any part of the image of the platform, including any transparent part of the image. Neither should the image of the player have any excess transparencies.
File opening not working
By tomzz, with 1 reply.
Replied to by RcCookie, almost 3 years ago:
Copy the folder onto your local disk and extract it if it is a zip.
Hi i am programming a game for school project
By pascal2233, with 2 replies.
Last reply by danpost, almost 3 years ago:
pascal2233 wrote...
java.lang.ArrayIndexOutOfBoundsException
Your
for
loops are set to iterate twice the length of the array. Meaning, you are creating more
Track
objects than the array can hold. That is, your array length is 68880 and you try to place 137760 Track objects in that array. It can't be done. Hence the error once your loop counter reaches 68880, since the last element is indexed at 68879.
How can i generate each brick in a sequence when the run button pressed?
By SportingLife7, with 7 replies.
Last reply by SportingLife7, almost 3 years ago:
Thank you @danpost, its working better now. :)
(Shield Recharging) Been stuck on this one problem for 4 hours
By SilverCS, with 2 replies.
Last reply by SilverCS, almost 3 years ago:
Thanks man, you carry this site
Act Cycle Keeps Adding Object Over And Over
By SilverCS, with 2 replies.
Last reply by SilverCS, almost 3 years ago:
Thanks so much, I used 1 health for each player and used a switch and it cleaned up my code (and performance) by sooo much
Using getWorld() method to remove Actors from World
By Ronan444, with 3 replies.
Last reply by Ronan444, almost 3 years ago:
Actually, never mind I managed to fix it, thanks alot for your help @danpost
My breakout scenario is not removing the first row of my bricks
By SportingLife7, with 1 reply.
Replied to by Super_Hippo, almost 3 years ago:
Try to remove the brick from the ball class and remove all code inside the brick class. It’s never good to have intersection checks in the classes of both objects which intersect with each other.
I'm trying to add a "superbody", please help?
By SportingLife7, with 6 replies.
Last reply by SportingLife7, almost 3 years ago:
thank you @danpost, that makes sense. Thank you for your help :)
42
43
44
45
46
47
48
X