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

danpost's Comments

Back to danpost's profile

@chandan03, the author has the option to include the source when uploading to the site. If the author does not want the source available, then you cannot get it by way of downloading it from the site.
My recent update was to eliminate the use of the high-scores screen because it was not working.
I think the UserInfo class cannot "create" a file for storage with the new restrictions of Java 8. Older scenarios using the same class which already have the file created still work.
danpostdanpost

2015/3/20

This scenario looks awfully familiar. The ships, bullets, background and actions are exactly the same as one previously posted on this site. The only thing I am not sure about is the high scores screen (I cannot for the life of me remember if it had one or what it may have looked like.
@EduandErnst, when I said 'Try drawing ... " in the last comment, I meant as an experiment to see how it works -- not to change the way the scrolling engine sets the image. To set the image of the scrolling background, you could create a new GreenfootImage the size of the 'png', fill it with white and draw the 'png' onto it before setting it as the scrolling background image.
@EduandErnst, when I said 'Try drawing ... " in the last comment, I meant as an experiment to see how it works -- not to change the way the scrolling engine sets the image. To set the image of the scrolling background, you could create a new GreenfootImage the size of the 'png', fill it with white and draw the 'png' onto it before setting it as the scrolling background image.
@EduandErnst, when I said 'Try drawing ... " in the last comment, I meant as an experiment to see how it works -- not to change the way the scrolling engine sets the image. To set the image of the scrolling background, you could create a new GreenfootImage the size of the 'png', fill it with white and draw the 'png' onto it before setting it as the scrolling background image.
@EduandErnst, after further thought, I have come to believe that what you are experiencing has to do with .png files supporting transparency and .jpg not. Try drawing the .png file onto the background image, after filling the background image with color white if needed, instead of just setting the image as the background image. As the backdrop of your world window, the background image should be completely opaque (you should not be able to see "through" or "beyond" it).
@EduandErnst, I am not quite sure what you mean. Maybe you can start a discussion thread and link an image of what you trying to describe.