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
Error in code
By 343qwm29, with 1 reply.
Replied to by danpost, almost 7 years ago:
343qwm29 wrote...
I can normally turn, move, and fire at the same time but it does not work while using the left key. << Code Omitted >>
It may just be a keyboard thing, Try a different key combination (maybe use 'x' instead of 'e').
Limiting the spawning/creation of objects or classes based on ints
By Notted, with 15 replies.
Last reply by Notted, almost 7 years ago:
Ok, now it works. Thank you very much.
Classes, subclasses and coords. can you help out a beginner?
By Andrew.2, with 9 replies.
Last reply by Andrew.2, almost 7 years ago:
Thanks! Or should i say tanks! Ok bad joke aside this seems to work and most importantly i learned some useful things from this. I'll let you know if i have any other issues.
Help on generic pointers
By RenoJackson, with 1 reply.
Replied to by danpost, almost 7 years ago:
RenoJackson wrote...
I'm creating a program that contains multiple instances of an object. These instances spawn in a while loop and I want to say if ANY one of those instances is touching object x then do delete all further instances which I plan to do by using the break method in the loop. The problem I'm finding is that there is no direct way to say if ANY of the instances are touching object x. I was wondering how you guys would work around this problem.
Let me get this straight. You want to stop creating these object once any placed into the world ends up touching this object x.
Subclasses
By Adi18, with 9 replies.
Last reply by Adi18, almost 7 years ago:
I just fixed it, thanks for help
Help with collision system
By TheSlorrow44, with 12 replies.
Last reply by nccb, almost 7 years ago:
As I understand it, clone() copies all object fields exactly. But Actor keeps an internal identifier number, so clone() copies that identifier. Using clone() is almost certain to mess Greenfoot up, as it assumes each actor has a unique identifier. Instead, write a copy-constructor that copies the state you want.
Offset a bullet when player is turned
By huzzah, with 2 replies.
Last reply by huzzah, almost 7 years ago:
Working now, thanks
Drop down menu
By arizona, with 1 reply.
Replied to by danpost, almost 7 years ago:
arizona wrote...
I'm trying to create two drop down menus - one for month, one for day, to input a birthday. I found some posts about how to create a drop down menu, but none of them will run on my computer because they're from older versions of greenfoot, I guess. Can anyone help? (Also I'm literally terrible at this so please be patient.)
My latest scenario,
Smooth Mover Demo
, contains a
DropDownMenu
class and has source available. I also recently uploaded a
Calendar Actor Class
Greenfoot window won't open
By iminblue, with 2 replies.
Last reply by iminblue, almost 7 years ago:
Oh my God it worked ! Thank you so much man u saved me so much time .
how to create and remove an object depending on if a key is being pressed
By TobyRoby, with 9 replies.
Last reply by TobyRoby, almost 7 years ago:
oh that worked thank you, i dont think i saw the bit where you said about the else statement. here is the code if anyone in the future wants to know <Code Omitted>
Java turnAtEdge
By Iz.\uo, with 1 reply.
Replied to by danpost, almost 7 years ago:
I think what you want is this: <Code Omitted>
Deleting Objects
By cookieKeks, with 2 replies.
Last reply by cookieKeks, almost 7 years ago:
Thanks, man
Sonido en los pasos del Personaje
By ademar, with 4 replies.
Last reply by ErnieBoi, almost 7 years ago:
Mr Trump, I am
Russian
.
java.lang.NullPointerException
By TheRealAOD, with 1 reply.
Replied to by danpost, almost 7 years ago:
I do not see anything wrong with your code. Maybe you already have a Score class (??). Or, maybe there is a hidden character in your code the compiler does not like (try deleting and retyping white space around that line).
Pong
By Josh123, with 22 replies.
Last reply by Josh123, almost 7 years ago:
I almost got the scoreboard working and then my laptop died and it got erased and I just want it done now lol
216
217
218
219
220
221
222
X