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
Declaring a color variable
By carterfootball, with 1 reply.
Replied to by darkmist255, almost 13 years ago:
Yup. Just say something like <Code Omitted>
move() is not accurate?
By iiRainzZ, with 7 replies.
Last reply by darkmist255, almost 13 years ago:
Nope :D. It looks good when it's rounded to pixels though, don't worry, as long as the precise coordinates are kept.
Strange behavior, what am I missing?
By darkmist255, with 7 replies.
Last reply by darkmist255, almost 13 years ago:
Haha, thanks! I'm gonna read through this again for any more copy-paste mistakes. So, advice to all: NEVER code when you're very tired :D! I did this yesterday after working a few hours on a model then doing my homework, bad idea :D.
Assistance?
By Nassam, with 3 replies.
Last reply by danpost, almost 13 years ago:
You need to add a reference to TestWorld to prefix the call to explode(). 'reference.explode();'
removing objects after they have been shot
By jarope, with 13 replies.
Last reply by jarope, almost 13 years ago:
I thought that move had an issue as it was shown in the "shooting" tutorials as being a double. but that explains also why in a new world with no changes why it worked and with the scenario given there was a problem. will work through this and see what results I get. again, Many thanks Jarope
Greenfoot.isKeyDown() problem/bug
By henrikland, with 4 replies.
Last reply by davmac, almost 13 years ago:
Also see
this previous discussion
.
WAV (Microsoft) signed 16 bit PCM sound file won't play.
By Dirk1616, with 2 replies.
Last reply by giordanno92, almost 13 years ago:
I'm not quite sure, but I was also getting a similar error, depending on where you converted your wave file, it might be Nyancat.WAV and not Nyancat.wav. Not sure if it helps.
school game
By ADRI0813548, with 4 replies.
Last reply by ADRI0813548, almost 13 years ago:
ok i go post it but i dont can let it longer or my school boys will see what am making need to b somthing private an then when done post full game but i post it now cuz i need really help
Greenfoot kinect Server has stopped working - Help please
By hawkwolf, with 2 replies.
Last reply by hawkwolf, almost 13 years ago:
Because I originally could not get the drivers to load, I used alternative software versions from the official OpenNi sites, and this seems to have caused the issue, as I followed your suggestion and reinstalled the versions from the Greenfoot site and it now works. Thanks. I managed to solve the original driver problem by installing them manually through the "Add hardware" program in Control Panel. If I didn't do that, the drivers failed to automatically install and there was nothing in the Device Driver panel to show any Primesense devices. I'm suprised this hasn't been a problem for othe
Accessing a subclass method from the superclass (sort of)
By darkmist255, with 3 replies.
Last reply by AwesomeNameGuy, almost 13 years ago:
It kinda does return the specific type of enemy in a way. It will return the specific type of enemy object at runtime alright, but the compilor doesn't know what subclass of enemy it's going to get when it compiles the program, hence it will only let you use methods that are defined in the enemy superclass in your code, unless you cast it to a more specific type, and you should only do that if you have a situation where you know for sure what kind of enemy you are going to get, otherwise I believe it causes a run time error. That aside, at runtime java will know which subclass it has though, a
Missing return statement?
By darkmist255, with 4 replies.
Last reply by darkmist255, almost 13 years ago:
Thanks! I got it working! The first opponent is now finished, and the game engine is 90% complete. Now for some visible progress :D!
Actor teleporting
By darkmist255, with 1 reply.
Replied to by darkmist255, almost 13 years ago:
Got it! I got rid of the direct link between distance and momentum. This is the working code:
Removing an object when it reaches the world end
By Wittwalsky, with 1 reply.
Replied to by davmac, almost 13 years ago:
Please read
this
& post again.
Error:S
By TopInPut, with 4 replies.
Last reply by davmac, almost 13 years ago:
Actually, it means that the parameters you are passing to the method are the wrong type(s), or that you have the wrong number of parameters. Check the documentation and make sure that you understand what you need to pass to it and that your code provides the correct parameters. (In your code, how many do you give? How many are required?) Similarly for line 11: Ball ball = (Ball) getOneIntersectingObject(this); What is the required parameter type? What are you actually passing? (check the
documentation
).
Just a quick question.
By darkmist255, with 1 reply.
Replied to by darkmist255, almost 13 years ago:
Nevermind, just realised that I have my if's in an ascending order, so it would always execute the last one last. I just made them "else if" and it worked :D. One problem though, when I set volumeLevel to 50, there's no audio? Here's the relevant code: In "Spikes.class"
1019
1020
1021
1022
1023
1024
1025
X