Game Development Community

Just wondering, about scrollers

by Steven Garcia · in Torque Game Builder · 07/28/2007 (1:28 am) · 3 replies

What are the exact dimensions that a scroller has to be in order to technically scroll without the white space.

its just the problem is intend to use a scroller, but i cant figure out the dimensions the picture has to be in order for it not to have that white space(cant connect correctly)

#1
07/30/2007 (9:48 pm)
Hi Steven,

I'm not 100% certain, but I believe X/Y dimensions that are whole number multiples of each other will not show the white space. If you reduce the dimension to X:1 and X is a whole number (no decimal) it's safe...

For example, 128x128 is OK since the ratio is 1:1... 256x128 is also OK (2:1)... Something like 800x600 is not OK since the ratio is 1.333:1.

That's always worked for me... LMK if you ever come across an image that doesn't work with this rule!

Tom
#2
07/30/2007 (9:54 pm)
Don't think it has to do with the relative scale between the dimensions (but it might, I haven't really tested it).
I suspect it has to be a power of two. That is 8, 16, 32, 64, 128, 256, 512, etc, etc.
#3
07/30/2007 (10:16 pm)
Whoops you're right... I just tried 200x100 and it still produces the white bar. I guess the dimensions have to be a power of two then. :)