Game Development Community

Scrolling ImageMap

by Jason McIntosh · in Torque Game Builder · 02/27/2005 (1:46 pm) · 2 replies

In the Reference Guide, it mentions that a non-animated, full-mode ImageMap can scroll "through the texture." Can someone please shed light on how this is accomplished? I didn't see any calls to do this.

#1
02/27/2005 (2:00 pm)
It looks like you create an fxScroller2D object and add it to the scene graph. By default, I'd assume you scale the Scroller2D to fill the entire viewport. It would then stretch the image map to fit. Calling setScrollPosition would let you scroll toroidally in any direction. I imagine that if you scale the scroller larger than the monitor, you can make a 640x480 bitmap stretch to 1280x960, etc.

Try it out. It doesn't look to hard to play with.
#2
02/27/2005 (2:03 pm)
Ok, maybe I misinterpreted what that meant.

I thought it meant you could avoid overhead associated with fxScroller2D if all you want to do is scroll a static image. So I thought the reference to "through the texture" meant you could use texture scrolling in hardware to achieve that specific effect, but I see no way to do that.

Thanks for the reply. :)