Create Animated Sprays in Team Fortress 2 and Counter-Strike
Posted 11/28/07 at 08:50:19 PM | by Andy Salisbury
Expressing your individuality online can be difficult, especially if you’re a gamer. While running and gunning your way through games like Counter-Strike: Source or Team Fortress 2 it’s easy to get lost in the crowd. But leaving your mark on the world is easier than you might think. Animated sprays are a great way for you to tell your enemy that, not only have they been pwned, but that you're the one responsible.
Custom animated sprays were limited to the most elite players in the days of Counter-Strike 1.6, but now that Source is here that’s all changed. So prepare yourself for a quick and easy way to make your own spray and let the lolcats run wild!
What you need:
- Adobe Photoshop CS3 (Trial works fine, free for 30 days, www.adobe.com)
- A game based on Valve Software’s Source engine with multiplayer
- VTFEdit
Time to complete: 2 hours
Step 1: Clean up your picture of choice
The hardest part of making your own animated spray is deciding what pictures to use. The choice is tricky, as the end result represents both your unique personal style, and your declaration of badassedness whenever you choose to use it. The choice can either be easy or agonizing.

Make sure that the background contents are transparent, otherwise when you load up your spray online there will be a big ugly white background!
For the sake of simplicity, we used a lolcat for our sample spray. The images are popular on the Internet, and occasionally even funny. Once you’ve chosen your picture, you'll want to place it on a transparent background using Photoshop. Open the original image, then press ctrl+a to select the entire image, press ctrl+c to copy it, and create a new canvas by pressing ctrl+n. The new canvas will already be the exact same size as the image on your clipboard, so you can simply paste it by pressing ctrl+v. It's a good idea to make a backup save of your image now. If you mess anything up, you'll be able to revert your changes much more easily if you have a backup.
Cut out the area of the picture that you want to be transparent by selecting it with the lasso tool, then pressing delete. Don’t worry about getting rid of everything at once, just remove unwanted background one chunk at a time. For bits of the image that are the same color, you can use the magic wand tool. This lets you select adjoining pixels that are the same color quickly and easily. When you've clipped out all the of the background that you want to, for each of the images you'll use in your spray, resize the image to 128 pixels wide using the Image Size panel (ctrl+alt+i), and move on to the next step.
Step 2: Create the backbone of your custom spray

Put your files side by side and make sure that they’re what you want other players to see. For me, this is right on the money.
Once you’ve got your picture(s) clipped, open them up side-by-side in Photoshop. This is the best time to input any text that you want in your spray. With the separate frames next to each other it’ll be easy to see exactly what your finished product will look like in-game. The one thing you can't do is create too many frames--due to the Source engine's 120KB spray filesize limitation, you probably won't be able to create more than five frames. Make sure everything looks the way you want it to and save the finished 128x128 images in one directory with names that alphabetize into the proper order for the frames (1 image.jpg, 2 image.jpg, etc).
Not Very Maximum
Submitted by Darth Ninja on Mon, 2008-03-10 21:48
You cant have transparent layers in JPG files (at least not in TF2) you have to save them as a .TGA image
As for requiring photoshop to make sprays, that's overkill; Paint.Net works just fine for people who dont have $600 to burn, but then, maybe you didnt buy it :P
jpgs can't be transparent
Submitted by edm203 on Sat, 2008-01-05 07:32
So jpgs can't be transparent. Anyone know what file type you should save as instead?
Edm203
Asus P5B Motherboard
Intel Duo Core 2 6400
ATI All in Wonder 1900
1GB of Consair Value, 2GB of Crucial, both at 5300 DDR2
250GB Seagate 7200.10 series serial ata
Lite On 16X DVD Burner w/ lightscribe
Coolmaster 450W silent PSU
Windows XP
animated TF2 sprays
Submitted by bgthigfist on Wed, 2008-01-30 14:26
I tried following the tutorial and couldn't get the background which was transparent in Photoshop to stay transparent in the spray, no matter how I saved the output file. Also the article references "for a high-speed preview of your spray" but where can you specify the delay between frame switch? I got the spray up on a wall in a TF2 server, and it was flipping as fast as it did in the preview pane in VTFedit. It's seizure inducing. More details please on an otherwise excellent, inspiring, and exciting tutorial.
Just great, now we're going
Submitted by DRAGONWEEZEL on Fri, 2007-11-30 17:31
Just great, now we're going to see people's balls. Animated. Son of a Bitch!
THERE ARE ONLY 11 TYPES OF PEOPLE IN THIS WORLD. Those that think binary jokes are funny, those that don't, and those that don't know binary






