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

2013/10/7

How to create a 4096x3072 Map?

1
2
Cyiaz10 Cyiaz10

2013/10/13

#
Did i have any easier scenarios where u use this principle ? This would be really important for me, thats why i want to learn this asap! :-) Btw, is it even possible to create a 4096x3072 Map with a 1024x768 Window without any kinda lags ?
danpost danpost

2013/10/13

#
You could scale everything down to somewhere between half-sized and three-quarter-sized. This would reduce lag and probably fit on the screens of most users.
Cyiaz10 Cyiaz10

2013/10/15

#
So, until now i managed to create a scrollable map with 2048x1536, but if i get too close to the Background-image-edge its going to be buggy cause its trying to draw the image new all the time. Now i made some edges into my world, which means i can only use 1496x1150 now, the rest of the world cant be used cause my charakter is the center of screen, means that i have to substract 500 on the x-axis and 400 on the y-axis ( a little bit more to fit my character optional). Do u have any idea how i could manage to stoping my character to be the center and allow him to get to the REAL 2048 pixel edge instead of the smaller edge i created myself?? And thanks for all your help danpost, i really appreciate that! :-)
danpost danpost

2013/10/15

#
You could look at the code to my Scrolling SuperWorld scenario. It performs three adjustments to the location of the main character (1) scrolls everything to move it back to center screen; (2) scrolls everything to ensure background still covers screen; and (3) ensures the main character is still within screen bounds.
You need to login to post a reply.
1
2