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
Game crash need help!
By FatCat, with 5 replies.
Last reply by darkmist255, over 12 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 12 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 12 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 12 years ago:
Yup. Just say something like <Code Omitted>
move() is not accurate?
By iiRainzZ, with 7 replies.
Last reply by darkmist255, over 12 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 12 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 12 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 12 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 12 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 12 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 12 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 12 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, over 12 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, over 12 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, over 12 years ago:
Got it! I got rid of the direct link between distance and momentum. This is the working code:
1014
1015
1016
1017
1018
1019
1020
X