How do you make smoke?

That is one of the best examples of smoke I’ve ever seen, and by far the best I’ve seen done in Flash. Can I get a source FLA for that?

man… except that little jump at the end of the loop. I still want the source though…

reread my 2nd post: only swf, or 3ds file

ahh… I didn’t look at that…too busy mesmerized by the smoke I guess. :slight_smile:

i made this smoke with a shape and a script attached to it and duplicated x times, i think it looks nice, wish i new how to do duplicate.movieclip… anyone know a good tut on that?\r\rmeesje\r\rhttp://chocolat.topcities.com/smoke.htm

Hey, that looks good !!\rWhat do you want to know about duplication ?\rpom 0]

thanks for liking it :)\r\ri’m just getting into actionscript so please excuse my poor knowledge… \r\rat this moment i started with a movieclip of the text balloonish shape and attached a script to it that sets certain properties like rotation, scale, alpha and position… when i want to change a parameter i have to access al scripts or change one and re-duplicate and re-tweak them\r\rso i imagine one can write one function and the instances calling the function, i tried all day but no go…\r\rthen there is the duplicate movie\rhere i assume there is a way to set a loop to generate an x amount of these instances and give them (random) slightly different properties… \r\ri know little bit of lingo, i know the concept of lists and reading them but maybe that is not needed here… anyway the simpler the better ))\r\rthank you for your attention,\r\rmeesje

Well, you could put one instance of smoke with the code in it, and instance name it ‘mc0’. You’d have to change the code a bit though.

 onClipEvent (enterFrame) {\r\rif (_name == "mc0) {\r\r         this.duplicateMovieClip("copy"+x,x) ;\r\r         this["copy"+x]._x = random (150) ;\r\r}\r\r// The rest of your code\r\r}

I don’t code from scratch too well though, so if this doesn’t work, that’s normal, just post back. :smiley: \rpom 0]

yo copypasted thanks pom\rgonna do a little sleep first\rand look at it with a ‘fresh’ head tomorrow\r(you made me happy twice today))

Never ever copy paste what I write. I made several mistakes, lacking ", ; and all kinds of things…

pom 0]

hi again,

no luck today (hence the unsolved rubics cube icon i chose)

guess i’ll pick up that flash math creativity book pom just mentioned and dive into it, i did a google search and found the site connected to the book, guess most of you know it but what beeeeautiful examples of!!

pom does the book have smoke?

www.friendsofed.com/fmc/index.html

anyway for for who is interested in the smoke, for beginners like me… i took one movieclip, attached the script, set the alpha, duplicated it about 20 times and tweaked their scale and rotation

meesje

onClipEvent (load) {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp IKS = this._xscale;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp JIJ = this._yscale;
&nbsp &nbsp &nbsp &nbsp }

onClipEvent (enterFrame) {
&nbsp &nbsp &nbsp &nbsp this._rotation += 1;
&nbsp &nbsp &nbsp &nbsp if (this._y<0) {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp this._y = 110;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp this._xscale = IKS;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp this._yscale = JIJ;
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp this._alpha = 50;
&nbsp &nbsp &nbsp &nbsp } else {
&nbsp &nbsp &nbsp &nbsp this._y -=2;
&nbsp &nbsp &nbsp &nbsp this._xscale +=.5;
&nbsp &nbsp &nbsp &nbsp this._yscale +=.5;
&nbsp &nbsp &nbsp &nbsp this._alpha -=1;
&nbsp &nbsp &nbsp &nbsp }
}

I haven’t seen smoke anywhere. But you have some nice examples all right…

pom 0]

thanks =)

gonna pick up that book you mentioned later this week and try to make a version with duplicatemovie… make it originate from one point… try try, well i surely will come back here to post results and very likely questions

but please feel free to have go… you, jeremy, anyone… different methods, maybe we can make a tut out of it

meesje

“teach me more actionscript!”

If that’s just a problem of duplication, no need to buy the book (buy it anyway, it’s great). I think there’s a good example of what you want to do in the open source section, a fla by Thoriphes, about bubbles and all…

pom 0]

URL=www.kirupa.com/developer/…licate.asp

wow thanks pom,

i thought i had browsed through them all
missed it

meesje

That’s one, but I was thinking about www.kirupa.com/opensource/index.asp
pom 0]

thanks :slight_smile: they both were very usefull
the dupicatemovie was far less complicated than i thought

meesje

If u guys wanna see REALLY convincing smoke check this out:

www.vastminds.com <–niiiiiice

WOW. This site was SOTW a few weeks ago, and they really know how to Flash.
pom 0]

Awsome smoke… other than that ignore me, I quit smoking after 10 years. I haven’t had one for 24 days, 19 hours, and 55 minutes… not that all these posts are doing anything to me :slight_smile: