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

2015/6/10

i need help m8s (to small screen)

jaki jaki

2015/6/10

#
i craeted a game in greenfoot for scholl. But i did it with my laptop and my laptop has a very wide screen. Now i finish my project and want 2 show it in school. The problem: In my scholl are just small screens (not like my laptop). Now i have 2 draw the lower scrollbar to the ride 2 see the place were the character is at the moment. Pls help me. Would be so nice. T u !
plant plant

2015/6/10

#
Lets say your world size is 6000 by 6000 with a cell size of 1. Lets say we want to decrease the world size to fit our screen. Go into your world class. This could be called "MyWorld", "Space" or whatever you called it. You will find code that looks like this..
1
super(6000, 6000, 1);
Try changing it to
1
super(600, 400, 1);
or
1
super(200, 100, 1);
That should fit your screen hopefully! Hope I helped!
danpost danpost

2015/6/10

#
Some possible solutions are: (1) reduce the size of everything (the world with its background image, the actor images and every value referring to distance -- coordinates, offsets, ranges etc); (2) incorporate a scrolling system so that the main actor is maintained within a window that will fit the screen and your current world size would be the scrollable area;
jaki jaki

2015/6/11

#
first of all ty ;) i love this forum and all people are so nice @ plant: i already tried this but then then my objects are still 2 big and i have a lot of objcts and it woud take 2 much time 2 minimize them. @ danpost: (1) would be 2 much work ;D (2) good idea m8 but how 2 implement this ?
danpost danpost

2015/6/11

#
You could try implementing my ImgScroll class. It is available through my Bee Quick (ImgScroll Demo) scenario. I believe it would be sufficient for your needs. Look over my demo to see how it is used (also look at what methods are available in the ImgScroll class). If you have any difficulties in implementing it into your project, please do not hesitate to continue this discussion thread.
You need to login to post a reply.