Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Advanced Spray Transparencies/Animation in Flash
Difficulty: Advanced
Category: CS:S > SpraysAuthor(s): jlm

Here is a spray made with these methods:


Creating the Ultimate Transparent Spray (Flash & Photoshop)

Flash is great for vector drawing, animating, and tons of other crap, if you dont already have it, SHAME ON YOU!

Crap you will need:

  • First off, you need to have Macromedia Flash, pretty well any version should do, but I suggest either MX or 8.
  • Next you will need Photoshop, Any version made in the last 3 or 4 years should do just fine.
  • (For this tutorial I am using Photoshop CS2 and Macromedia(Adobe, blech) Flash MX.

GET FLASH and GET PHOTOSHOP

Ok, for this tutorial we will be making an animated Counter-Strike: Source spray, with ummmm, lets say 10 levels of transparency (100 available if you are ambitious!).

Step 1: Creating our animation in Flash...

  1. Ok, load up Flash, we will build the transparencies first. It should start you with a default 550x400 document, resize our work area to 256x256 (follow the steps in the screenshot below).

  2. Now lets make some basic shapes, Select the "Circle" tool from the tool bar on the left (), select "No Color" for the fill color, and any color for the line color (besides white, use something visible like red, blue, green, black, etc) (), and draw yourself a circle, a few ovals, maybe get crazy and throw in a few squares while your at it. Just make sure once you are done you have at least 10 fill spots, a fill spot is any place enclosed in lines, like so (I circled 3 of about 15 fill spots in red to show you what I mean):
  3. Ok, now we will fill all our cute little fill spots with random colors, go ahead, go nuts with the fill tool and move on to step 4.
  4. Ok, your masterpiece should look somewhat retarted, much like mine:


    Now lets learn what Alpha is all about :) First, select the Arrow Tool () and then left click on one of the filled in fill spots, like so:

    Once you have a fill selected, look to the color mixer (Usually the top right
    of the window) and adjust the "Alpha" slider to any value you wish, once you do so and then deselect the fill, you will notice it has become lighter (because its transparent, and now you can see the white background through it, not to worry, the white background wont be there when all is said and
    done.)

    Now, repeat this step of the tutorial for each fill, use random values on
    the Alpha slider, then move onto the next step.
  5. Ok, now we should have a crappy looking mess, but hey its transparent! Your crappy looking mess should look nothing like my crappy mess, but should have similar transparencies:

    What we will do now is make a second frame, just so we can call this an animation, yes, I know, its a cheap cop out, but it is all we need as a learning step, so, go to the timeline/layer bar up top, and click on the second frame and hit F6 (this will create a "Key Frame") A key frame will allow us to edit the next frame, starting from where we left off in frame 1. Now, go ahead, mess shit up, make some changes for frame 2, hell, erase all of frame 2's contents if you want, who cares(Thats what I will be doing :P)! See the screenshot below for assistance in creating a key frame.
  6. Ok, now we have an animation, go to the Control menu and hit "Test Movie", you should now be presented with the lamest animation you have ever seen in your entire life. Now we will export our leet frames to PNG format. Close the preview of your lame animation, and click the File menu, then "Export Movie...", in the "Save As Type" box, select "PNG Sequence" and type "spray" for the filename, all lower case. You should be presented with a settings window, make it EXACTLY like the one in the screenshot below, then click OK. (If resulting spray is to large in file size at the end of this tutorial, try it with 128x128 or 64x64)

    There, we have just exported 2 PNG images with transparency/alpha data intact. Close flash, and open Photoshop.
  7. Ok, open the 2 PNG images in photoshop, in the first image, click the Select menu, then click "Load selection..." and you should be presented with this window:

    Make sure the settings are exactly like mine, and click OK. Now it should have automatically selected all the shapes you drew in flash. Now create a new channel by going to the Channels tab in that nifty box on the right side of the window, and then click the little arrow button and select "New Channel...", then make sure the settings match mine, and move on to the next step.
  8. You should now have a black image with selected shapes, but no color, just solid black. Thats the way we want it, first thing you do is click the little check box next to "RGB" in the channels tab ()
    then hit BACKSPACE, you should end up with something like this:

    Now go to File>Save As... and save it with the TGA (Targa) format, it will ask you for some settings, make them exactly like mine and then save it:

    Repeat these steps with the second PNG image.
  9. Now our frames are ready for importing! If you already know how to combine TGA's into animated sprays, your done! Go do it! If not, You need to now move onto this tutorial by Killerfromsky, to learn how.

I hope this tutorial was helpful and informative! Happy Gaming!



FILE SIZE OF THE RESULTING VTF CANNOT BE LARGER THAN 131KB SIZE ON DISK (right click the VTF and properties to see exact size on disk)

Added: 1 year agoTags: flash, macromedia, photoshop, spray, animated, transparent
Feedback (13)
Page of 2   1 2 Next Page
Good Carma(Geddon)/pspmad .
Nostaglica(DONT COPY)Y2M
Posted 3 months ago
Posted by tar_pys

Kan u make a rose for me i cant download that program :/

i would aprisiate it aloot im one of swedens best programer but cant find adobe flash mx any where...:$ so im asking u nicely please


Lol at worst troll on FPSBANANA
- Nostaglica(DONT COPY)
tar_pys .
BananiteY2M
Posted 11 months ago
Kan u make a rose for me i cant download that program :/

i would aprisiate it aloot im one of swedens best programer but cant find adobe flash mx any where...:$ so im asking u nicely please
- Bananite
JLM .
yeeeeeeeeeeeeah boiiiiiiiiiiiiiiiiiiiiiiY2M
Posted 1 year ago
It works fine, you just have to stay within the limits (131kb + dimensions).
CrshNBrnX .
PwNz0rY2M
Posted 1 year ago
Didn't work for me, and i've been working with VTEX and other sdk-related utilities for years. I can make animated sprays in just photoshop, but I thought this would be easier. turned out your tut didnt work for me. thanks for the effort.

Posted by Spearmeat

I've followed this tut exactly, but I can't get the sprays to work. I've made many animated sprays with the Vtex tool. I wanted to try the flash version, but around step 8 i can't figure out what i'm doing wrong. I have to uncheck the visibility buttons on the RGB, red, green, blue channels to see the black only with shapes picked. Then i check the RGB visibility button and hit backspace once and save as stated. I create the spray and put into cs:s, it shows in spray drop down menu but doesn't show in game.


Double-Click the alpha layer entitled Alpha 1 to bring up the menu.
Jomann .
BananiteY2M
Posted 1 year ago
Wow that looks amazing, you should make one like that for me :)
- Bananite
JLM .
yeeeeeeeeeeeeah boiiiiiiiiiiiiiiiiiiiiiiY2M
Posted 1 year ago
Posted by Spearmeat

I've got it to work with only one frame, however using more than one doesn't work. It must have something to do with the rendering of the Vtex tool, or the .vmt file itself. I will keep working on it until i find the problem.


Keep in mind file size, the resulting VTF can not be more than 131KB (size on disk, right click the VTF and properties) or it wont show up in game.
Spearmeat .
Bacon!Y2M
Posted 1 year ago
Posted by JLM

Posted by Spearmeat

I've followed this tut exactly, but I can't get the sprays to work. I've made many animated sprays with the Vtex tool. I wanted to try the flash version, but around step 8 i can't figure out what i'm doing wrong. I have to uncheck the visibility buttons on the RGB, red, green, blue channels to see the black only with shapes picked. Then i check the RGB visibility button and hit backspace once and save as stated. I create the spray and put into cs:s, it shows in spray drop down menu but doesn't show in game.

as long as you have all channels visible, but only the alpha channel selected (blue), when you hit Backspace, it should return your spray to regular RGB color, but leave the remaining outskirts of the image the same color as your alpha layer (in my case pink).


I've got it to work with only one frame, however using more than one doesn't work. It must have something to do with the rendering of the Vtex tool, or the .vmt file itself. I will keep working on it until i find the problem.
JLM .
yeeeeeeeeeeeeah boiiiiiiiiiiiiiiiiiiiiiiY2M
Posted 1 year ago
Posted by Spearmeat

I've followed this tut exactly, but I can't get the sprays to work. I've made many animated sprays with the Vtex tool. I wanted to try the flash version, but around step 8 i can't figure out what i'm doing wrong. I have to uncheck the visibility buttons on the RGB, red, green, blue channels to see the black only with shapes picked. Then i check the RGB visibility button and hit backspace once and save as stated. I create the spray and put into cs:s, it shows in spray drop down menu but doesn't show in game.

as long as you have all channels visible, but only the alpha channel selected (blue), when you hit Backspace, it should return your spray to regular RGB color, but leave the remaining outskirts of the image the same color as your alpha layer (in my case pink).
Spearmeat .
Bacon!Y2M
Posted 1 year ago
I've followed this tut exactly, but I can't get the sprays to work. I've made many animated sprays with the Vtex tool. I wanted to try the flash version, but around step 8 i can't figure out what i'm doing wrong. I have to uncheck the visibility buttons on the RGB, red, green, blue channels to see the black only with shapes picked. Then i check the RGB visibility button and hit backspace once and save as stated. I create the spray and put into cs:s, it shows in spray drop down menu but doesn't show in game.
JLM .
yeeeeeeeeeeeeah boiiiiiiiiiiiiiiiiiiiiiiY2M
Posted 1 year ago
I've been a flash nut since like '98, so it was only a matter of time before I figured it out :)
Page of 2   1 2 Next Page
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
10/10
bScore
10.0/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Well Written & Comprehensive
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Brought to you by...
#NeutraLized
The Good, The Bad, and The NeutraLized
Membership: On Request
Primary Skills: Graphic Design, Mapping, Modelling, Texturing
Inception: 2 years ago
Vote for Studio
Like this tut? Vote #NeutraLized for one or more monthly awards.
You must login or register to access this!
Related Tutorials
Want more? Find related tuts.