The Game Modding Community - Since 2001

Creating Animated Sprites and Textures

A Tutorial for Source Engine

To create an animated sprite or texture you must first create a tga for each frame of the animation. Name these images image001.tga, image002.tga, image003.tga, etc, etc. Now create a text file with the following format and name it the same as the images (e.g. for the above example use image.txt):
 "startframe" "1"
 "endframe" "3"
Run the vtex command just as if you where creating a single texture, but instead of putting the tga on the command line use the .txt file, e.g. vtex -mkdir -shader sprite materialsrc/mymaterials/image.txt This will create a vmt and vtf file in materials/mymaterials For a an animated sprite edit the vmt file to look like the following :
 	"$spriteorientation" "parallel\_upright"
 	"$spriteorigin" "[ 0.50 0.50 ]"
	"$basetexture" "mymaterials/image"
NOTE: The frame rate and scale of the sprite are specified in the env_sprite entity For an animated texture which can be used on walls or skyboxes you need a different vmt as follows
  "$baseTexture" "mymaterials/image"
            "animatedTextureVar" "$basetexture" 
            "animatedTextureFrameNumVar" "$frame" 
            "animatedTextureFrameRate" "2" 
If you are creating a texture for a model, then change the shader from LightMappedGeneric to VertexLitGeneric. For animated textures the framerate is specified in the vmt file (In the above example it is 2 frame/sec) NOTE: Setting framerate of a spraypaint's vmt-file doesn't seem to work! Tutorial by CannonFodder, brought to CSB by [Xero].


  • 10y
    Treet avatar
    Treet Joined 10y ago
    775 points Ranked 6263rd
    Pros: It tells you how to basically get through it easily, and it's basically a copy and paste thing, which isn't bad. I liked this tutorial. Cons: Here is the thing, the tutorial title is misleading, it tells you the final step on making it, but you don't know how to install it, or if you want to edit a sprite or something, it doesn't really help you. Screenshots are not provided but it's still good. You don't have the sizes needed for things, so it might not work for some people. Improvements: Try and add the sizes that you should use, and maybe a FAQ. Like some people get an error where it says it has to be a power of 2. Maybe explain what that means and work on that to make more questions or problems; with answers of course. Notes: Very good tutorial but like said it needs more improvement. : )


    It's time for another; so I ca avatar
    It's time for another; so I ca
  • 10y
    NeonWarrior avatar
    NeonWarrior Joined 10y ago
    2,358 points Ranked 2066th
    Nvm i worked it out good tut
    wanna-be skinner avatar
    wanna-be skinner
  • 10y
    Ayo Ionic avatar
    Ayo Ionic Joined 10y ago
    377 points Ranked 11593rd
    Is it possible to make a non-looping texture? Like a decal? I'm just wondering. And if so, how do you do it?
    Nobody gets out alive. avatar
    Nobody gets out alive.
  • 12y
    Mr. Colt avatar
    Mr. Colt Joined 12y ago
    188 points Ranked 19533rd
    Posted by maxdamage68 Is it possible to make an animated sprite for a muzel flash?
    Nah I think the mozzle flash is only a single frame sprite, because valve thought it would be a nice idea...NOT!
  • 12y
    maxdamage68 avatar
    maxdamage68 Joined 12y ago
    1,182 points Ranked 4204th
    Is it possible to make an animated sprite for a muzel flash?
    Bananite avatar
  • 12y
    //.exe avatar
    //.exe Joined 12y ago
    1,223 points Ranked 4062nd
    Share... Enlighten us.
    //.executioner avatar
  • 12y
    Apez avatar
    Apez Joined 13y ago
    149 points Ranked 22929th
    : D I use Somtin Else : D
    ~The Ape Needs Banana~ avatar
    ~The Ape Needs Banana~


Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:


Original Authors
Xero Joined 13y ago
8,312 points Ranked 556th


Xero avatar
Xero Joined 13y ago
8,312 points Ranked 556th

Are you the owner? Request Ownership
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!


Difficulty Level
Intermediate Difficulty



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+


  • 8 Posts
  • 12y Submitted
  • 3y Modified


80 bScore
9.3 Rating
8.8 Critic

3 voters

1 critic

Sign up to access this!

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Stop Lurking! Sign up now!

Already a Bananite? Login

More from Submitter tracking pixel