Game Development Community

Scroller Question

by rmullen · in Torque Game Builder · 04/04/2007 (3:17 pm) · 5 replies

Hi. There is probably a really easy solution to my problem, but i'm totally frustrated trying to figure it out. Hopefully someone can help me. Here goes:

I set a background image in my scene, its a "scroller" object. I told it to scroll vertically. It does this, but there are these huge white gaps between the instances of the image. How do i get rid of the gaps?

Thanks.

#1
04/05/2007 (5:21 am)
Is the background seamless?
#2
04/05/2007 (6:13 am)
I'm sorry, I don't really understand the question. Let me post some pics to show you the problem.

img152.imageshack.us/img152/3950/71318036ef9.jpg
img156.imageshack.us/img156/9564/61142291py0.jpg
As you can see in the first example, the starfield background image. This is what i want to scroll vertically. But as you can see in the second image, when i tell it to scroll, there is a huge white gap. Any idea how to overcome this?
#3
04/05/2007 (7:54 am)
Hi.

Check the size of the background image.
I think that it should be power of 2 (for example, 128x128, 256x512, etc.).

Bye,
Jacopo
#4
04/05/2007 (9:23 am)
That did it! Thanks!
#5
04/05/2007 (9:44 am)
You're welcome! :-)

Bye,
Jacopo