how scroll a texture?

it is possible to scroll a texture in a 3d object?

i am searching but i don´t find nothing about it…:no:

You can with python!
I know i’ve seen it before, but can’t remember where…

######################
#  UV SCROLL SCRIPT  #
#  by Pepius         #
######################

horizontal = 0
vertical = 1
import GameLogic as GL 
cont = GL.getCurrentController() 
own = cont.getOwner() 
mesh = own.getMesh() 
array = mesh.getVertexArrayLength(0)

#The recomended max. speed is 0.10 and the min. is 0.009
SPEED = 0.1 #own.speed
 



for v in range(0,array):
    vert = mesh.getVertex(0,v) 
    uv = vert.getUV() 
    uv[1] = uv[1]+SPEED 
    vert.setUV(uv)

I hope have helped you!
Bye! ^^

would be nice if this was a logic brick or could be somehow done without accessing every vert via python

thanks you very much Vitorbalbio!!

the recommend min speed is 0.009, but i need a lot of less speed, and run fine with 0.00005!

:smiley: