How do I scroll a texture

Blitz3D Forums/Blitz3D Programming/How do I scroll a texture

Rob Pearmain(Posted 2003) [#1]
I want to have a conveyor belt in my game, but want the most graphic un-intensive way of doing this. One way I thought was to "scrool" the texture (UV?) to get the effect, any ideas on how to do this?

Many thanks


fredborg(Posted 2003) [#2]
scrolltex = LoadTexture("ConveyerBelt.jpg")
uscroll# = 0.0
Repeat
  PositionTexture scrolltex,uscroll,0
  uscroll = uscroll + 0.01
  RenderWorld
  Flip
Until KeyHit(1)

Or similar...
Fredborg


Rob Pearmain(Posted 2003) [#3]
lol, it's that easy :)

Many thanks