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

2015/7/18

Jar file issue

tmargaret tmargaret

2015/7/18

#
Hello everyone, On Greenfoot's editor everything is fine. On jar file, something is wrong about the world's dimensions (probably): I have a main menu screen when the game starts at (800X800). On this menu there are several buttons which start several levels. When the player pushes a button to play the level which is at (700X450), this level appears over the main menu which is still visible underneath. Should I dispose the main menu while creating the new level? How do I do that? Is this a jar file problem? (Greenfoot version 2.4.2) Thank you
tmargaret tmargaret

2015/7/18

#
I should add some new data.... When I minimize the jar window and then restore it, the main menu image goes away and everything seems to be normal again... So... any ideas? Maybe it's Vista's issue?
davmac davmac

2015/7/18

#
Well, setting different size worlds in exported scenarios isn't really supported. I think what you're seeing is that the part of the world pane that was covered by the original world but not the new one is not being re-painted, so it just continues to display the old world (minimising and restoring just forces a re-paint). This is probably something Greenfoot could do better, but then as I said, you're not really supposed to use different sized worlds.
tmargaret tmargaret

2015/7/19

#
Thank you for your answer
You need to login to post a reply.