|
It seems to have something to do with how/where the engine is drawing the sub maps. I'm doing looping background maps. It's hard to describe without a picture, but as I move them, they're only looping properly for the first few hundred pixels out from 0,0 (top left). Say, 5-600 pixels to the right, and maybe 3-400 pixels down. Anything beyond that mysterious border is an unpredictable mess of things getting drawn in the wrong spot, or not drawn at all. The whole area SHOULD be filled with my submaps, as per the submap count, but its not. submaps for the first bit out from the corner, then white space.
Im hoping i just don't quite understand the sub-mapping system, but he has parameters you can set for submab (XCount) and (YCount).. in his helpfiles, he describes these as the # of submaps across the map. He also advises to make the total map larger than the viewport of the screen, that way you never see the 'icky mess' going on beyond.
However, when I try this, i get very, VERY unpredictable results. I get alot of whitespace where there should be none.
Do you have the latest copy of his engine tutorials? If you do, load up Tutorial2. It runs fine, in fullscreen at 320x240. Now... set the resolutions higher (say, 800x600 or anything bigger.. in any proportion) and watch what happens. I'm havin the same trouble. I'm trying to be logical about my submap counts.. and it's not working.
Here's my logic:
My submaps are 256x256.
I'm temporarily setting my screen width, form width, viewport, etc.. all to 1024x768 for the sake of simplicity.
This means, 4 across, 3 down. Right?
If i set the submaps to 4x, 3y, or anything larger, i get maps all over the screen, moving in wierd ways around white space. i tried setting it higher, even more unpredictable.
Not sure if im making this clear at all... best way to describe it would be to run his Tutorial2 program.
Put it this way: I challenge someone to run his Tutorial2 example in a usefully high resolution (i.e. above 640x480). That seems to be my struggle. There would be no problem at all if i was going to run my game in 320x240, but i'd like to have a somewhat higher(1280x800) native rez.
Thanks in advance for taking the time to help me out!
_________________ "None are more hopelessly enslaved than those who falsely believe they are free." "It is no measure of health to be well adjusted to a profoundly sick society." "Hope is the first step on the road to dissapointment." -Jonah Orion http://tankzgame.blogspot.com
|