This was a source edit tutorial by 7Kings on the original RealmCrafter Standard forums
Hello at the request of some users on here, Here is a tutorial on how to have
animated textures on meshes.
A few things to note before we begin, there
are a few ways to do this, mine is probably not the most efficient way of doing
it, but it gets the job done. this tutorial will be explained with images and I
will try my best to fully explain what is going on.
Preparations
The first few files
you will need for this edit are:
Client.bb
ClientAreas.bb
Filmstrip texture
Step One
Edit
First you should open up your Client.bb and go to where all the globals are set up. You will be setting up 4 Globals which consist of:
Global (insert variable)tex = 0 Global (insert variable)PlaneLastFrame = (number of frames in filmstrip texture) Global (insert variable)PlaneAnimationSpeed = (Animation speed in miliseconds) Global (insert variable)PlaneFrame% = MilliSecs()/(timing of each frame in miliseconds) Mod (Number of frames in filmstrip texture)
When you are done with that it should look simalair to mine.
My code is set up for an engine gubbin mesh for a spaceship with an animated texture slapped on it. I have 24 frames and each frame runs for a second.