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

danpost's Comments

Back to danpost's profile

Try assigning the music in the constructor of the world instead of on the field declaration line of the GreenfootSound object.
@SwaggyXiao, please refer to my Scrolling Tutorial scenario on image scrolling (see main text and link at bottom on "Actor follow scrolling code"). The scenario is located at: https://www.greenfoot.org/scenarios/18226
Scaling and re-scaling an image will usually distort and eventually "destroy" an image. Better would be to copy the image and scale it once; then go back and forth setting the appropriate image.
The background image must remain completely opaque. Using "clear()" on it makes it completely transparent, which is why you are getting trails and added residual images.
@Roshan123, iZip should be able to unzip them; although, I have no personal experience with iZip. You might need to re-suffix the file from ".gfar" to ".zip" for it to work -- possibly not.
@Roshan123, you may need to download an app to unzip a gfar (like iZip)
@Roshaan123, oh yeah. Forgot about the lockout. File menu was added so that the Options menu could actually work on something. Nothing more. I wanted to show what code would look like having a menu selection (in Options) actually doing something (operating on File menu).
@Roshan123, please start a discussion thread and be more detailed in your question (provide any actual code being referenced as well).
@Roshan, it will work: getBackground().drawImage(new GreenfootImage(""+((char)8595), 20, Color.BLACK, new Color(0, 0, 0, 0)), 500, 500);