This site requires JavaScript, please enable it in your browser!
Greenfoot back

mjrb4's Comments

Back to mjrb4's profile

Nice images! It'll lag if you set the image for each letter dynamically each time, yes - as for why it's not working when the letters reach the end of the screen, you'll need to upload the source if you want people to help you fix it!
Hmm, it seems "up" just moves right a bit quicker than holding the right key down - are you meant to be able to constantly move up by holding down space? Nicely implemented though!
mjrb4mjrb4

2009/5/28

Nicely done!
The code you're thinking of is something like if(getX()>getWorld().getWidth()-10) getWorld().removeObject(this); - untested but should work.
mjrb4mjrb4

2009/5/28

Hi, you need to automatically load some objects into the world before we can play the game here - if you're not sure how to do this then have a look at this: http://www.greenfoot.org/greenroom/images/1/12/Adding_objects.pdf
Nice! The text overlaps a bit at the beginning (you might want to space it out a bit more) but a very good first go at a game here!
This again seems to be an issue with an image somewhere along the line, there's 3 things I'd suggest: - Make sure you're using the latest version of Greenfoot, errors like this suggest you're probably not and upgrading often solves issues that've been fixed. - Make sure all your images are referenced in the correct case, eg. if you type "pic.png" in your source code and the image is called "pic.PNG", this can cause problems like the above. - Make sure all your images are inside an "images" folder in the project directory, this sometimes helps. Michael
Hmm, it appears you are referencing things in the correct case after all - my mistake! I simply opened your project, dropped all the images in an images folder inside the project directory (instead of in the directory itself) and exporting seemed to work fine. So firslty I'd suggest trying that. Secondly, I really would recommend upgrading - it does seem like you're using an old version and there have been a fair few fixes in the last couple of releases. Unless there's a bug in the latest release that means you have to use an older version (unlikely) then it's always worth upgrading.
If you're still struggling with this, feel free to upload the source so we can point out what's wrong! I'm still pretty much convinced it's a problem with your images being in the wrong case though.