playing animated texture

Blitz3D Forums/Blitz3D Beginners Area/playing animated texture

jhocking(Posted 2003) [#1]
How do you use animated textures? I am fine creating the texture image but I have no idea how to play an animated texture. I just assumed that when you load an image with LoadAnimTexture and apply it to a model the texture will automatically animate, but that doesn't seem to be the case.


Beaker(Posted 2003) [#2]
You have to re-texture with a different frame number:
EntityTexture entity,texture[,frame][,index]


Binary_Moon(Posted 2003) [#3]
I just assumed that when you load an image with LoadAnimTexture and apply it to a model the texture will automatically animate


How would the texture know what sopeed to use. People use different frame timing methods and want the textures to animate at different speeds - wouldn't work with automatic texture animation

All you have to do is textureentity the object changing the frame each time.


Binary_Moon(Posted 2003) [#4]
Doh - beaten to it.


jhocking(Posted 2003) [#5]
Hm, that's kind of a pain for me because I am applying the animated texture to just one surface on the entity and thus must work with brushes but if that's the way it has to be done then that's how I'll do it. Seems stupid though; there ought to be a framerate parameter as part of the LoadAnimTexture command so that the animation will play automatically. I'll suggest that in Feature Requests.