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
healthbar help
By diy_surgery, with 1 reply.
Replied to by delmar, over 13 years ago:
You need to access the player object from the Healthbar object. Or the other way around. Either you make a method in Player that returns the health value, e.g. public int getHealth() { return health; } and then call player.getHealth() from your Healthbar object. But you have to work out how to access the player
object
(not the class) from your Healthbar object. Or you make a method in Healthbar: public void setValue(int value) { currentValue = value; } and call that method from player whenever the value changes. Again, you
Greenfoot Greeps
By bobbythewhale, with 1 reply.
Replied to by davmac, over 13 years ago:
Please don't share Greeps code and please don't ask for Greeps code. The Greeps scenario is used as a competition in classrooms. You are meant to experiment to figure out how to improve the Greep performance. It's fine to ask for help with other scenarios - but not Greeps.
How to spit paint trails of greenfoot greeps?
By bobbythewhale, with no replies.
*ON ..Can anyone help me with this?
Game crash need help!
By FatCat, with 5 replies.
Last reply by darkmist255, over 13 years ago:
Maybe call getWorld().konecIgre(someVariable) and have someVariable be the number?
Galaga Help
By NathanH, with 10 replies.
Last reply by NathanH, over 13 years ago:
Mine is telling me that it can't connect to its host. It might be because I'm on a school computer. We have everything fixed now and we're back on track. We've got all of our aliens working and everything else. We're currently trying to get the aliens to shoot back at us now. Thanks for all of your help though and be willing to help.
Problem with Act() method in sprite class
By mal, with 5 replies.
Last reply by mal, over 13 years ago:
OK, the class doesn't extend actor, it's a completely new class, I added the Act() method myself under the assumption that it would be called automatically. I've changed it to updateSprites() and now call it from the World. Hi danpost, we decided on using a spriteFactory to represent our images so we would only have one instance of each image required for the game, then we reference that image in whatever actor requires it. Each sprite can have up to 11 images (currently) that increment every time act is called. without the spriteFactory we could be looking at loading up to 17 image
Declaring a color variable
By carterfootball, with 1 reply.
Replied to by darkmist255, over 13 years ago:
Yup. Just say something like <Code Omitted>
move() is not accurate?
By iiRainzZ, with 7 replies.
Last reply by darkmist255, over 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, over 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, over 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, over 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, over 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, over 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, over 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, over 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
1024
1025
1026
1027
1028
1029
1030
X