Shop Mobile More Submit  Join Login
I've been learning actionscript again after years of doing nothing (sorry)
I mean, it's still actionscript 2 but i guess i should probably try and understand that properly before i move on to 3? i dunno.
So yeah, this is a little snow engine i made.

brothers and sisters, have a bearable christmas.

ps. doesn't work so well when there's animated adverts on the same page. nice one deviantart.
Add a Comment:
 
:iconboias:
Boias Featured By Owner Feb 10, 2013   General Artist
awesome... nice christmas card.
Reply
:iconpoypul:
poypul Featured By Owner Oct 30, 2012
so purtyyyy~
Reply
:icongreensprite:
GreenSprite Featured By Owner Feb 11, 2011  Professional Digital Artist
You're not using Adblock, then?
Reply
:iconwestykid:
westykid Featured By Owner Feb 12, 2011  Professional General Artist
no because i'm stupid •-•
Reply
:icongreensprite:
GreenSprite Featured By Owner Feb 12, 2011  Professional Digital Artist
:pat:
Reply
:iconbeardswin:
beardswin Featured By Owner Feb 3, 2011
thank goodness I don't have adds then

this is ace dude!

I love how the snow sticks
Reply
:iconsorrowmcr:
SorrowMCR Featured By Owner Dec 27, 2010  Student Photographer
great one :]
Reply
:icongosteoner:
GosteOner Featured By Owner Dec 26, 2010  Hobbyist Traditional Artist
works good for me. and yeah advertisements are starting to piss me the fuck off, especially the ones with sound
Reply
:iconnounouille:
nounouille Featured By Owner Dec 26, 2010   Filmographer
good job buddy ! looks as good as after effect ;p
Reply
:icongiantswalktheearth:
GiantsWalkTheEarth Featured By Owner Dec 26, 2010
It's great, I love how the snow flakes actually falls on the "Morning Skyrope"
Have you considered putting soft music? I thought that would be nice :D
Reply
:iconskyfire2008:
SkyFire2008 Featured By Owner Dec 26, 2010  Hobbyist Traditional Artist
>Morning Skyrope
"Morning Skyrail", you wanted to say?
Reply
:icongiantswalktheearth:
GiantsWalkTheEarth Featured By Owner Dec 30, 2010
Opse, Yeah, That's what I meant XP
Reply
:icontheendawaits:
TheEndAwaits Featured By Owner Dec 25, 2010
This is really nice, I'd request you provide the code, but people are starting to work less and less in AS2. I'd honestly just go right on ahead to AS3. I myself only know a little, but my programmer acquaintances say it's much simpler to use.
Reply
:iconwestykid:
westykid Featured By Owner Dec 26, 2010  Professional General Artist
Today I tried to get my head around the basics but i dunno where to start :S know any good places to learn?
by the way if you want the code to play around with it's in a comment further up the page ;)
Reply
:iconskyelark:
Skyelark Featured By Owner Dec 25, 2010
Deviant-art and animators(/artists) as a whole haven't been on good terms lately. I'm wondering if they're under new management or if they've just decided to be suck-tastic lately. =/
Reply
:iconarcsibo:
arcsibo Featured By Owner Dec 25, 2010  Hobbyist Writer
pleeeeeeease tell me, how do it in actionsrcipt 2. I'm learning as2, but i'm doesn't know, how do you do that ^^ pleeeeease
Reply
:iconwestykid:
westykid Featured By Owner Dec 25, 2010  Professional General Artist
init = function () {
angle = 0;
width = Stage.width;
height = Stage.height;
maxSize = 10;
flakes = 1000;
for (i=0; i<flakes; i++) {
t = attachMovie("flake", "flake"+i, i);
t._alpha = Math.random()* 100 ;
t._x = -(width/2)+Math.random()*(1.5*width);
t._y = -(height/2)+Math.random()*(1.5*height) - 300;
t._xscale = t._yscale=50+Math.random()*(maxSize * 10);
t.k = Math.random() * 5 + 1;
t.wind = -1.5+Math.random()*(1.4*3);
t.bl = t._alpha / 40;
import flash.filters.BlurFilter;
var blur:BlurFilter = new BlurFilter(t.bl,t.bl,2);
var myFilters:Array = new Array();
myFilters.push(blur);
t.filters = myFilters;
t.onEnterFrame = mover;

}
};
mover = function() {

if(_root.block1.hitTest(this._x,this._y,true) == false){

this._y += this.k;
this._x += this.wind;

if (this._y>height+10) {
this._y = -20;
}
if (this._x>width+20) {
this._x = -(width/2)+Math.random()*(1.5*width);
this._y = -20;
} else if (this._x<-20) {
this._x = -(width/2)+Math.random()*(1.5*width);
this._y = -20;
}
}
}

init();


have an mc in the library called "flake" with the instance name "flake" and put an mc on the stage with the instance name "block1"

POW!
Reply
:iconarcsibo:
arcsibo Featured By Owner Dec 26, 2010  Hobbyist Writer
Thaaaanx^^ and one more thing ^^ i would like to make a flash game, your game is awsome. so please tell me, how can i start it. i read lots of game creator fla... but cant create a normal 2d game :\
(sry for my bad english)
Reply
:iconthe-titan:
The-Titan Featured By Owner Dec 25, 2010  Professional Digital Artist
ahhh adam adam, still with actionscript 2.
at first glance on the code i actually thought you wrote it terribly, but having a better look you've got a few nice things in it.
nice to see you getting back to programming :3 and you definitly should try actionscript 3, its not that different in most parts!
can help you get into it if you want

other than thaaatttt Good Job my good friend and merry christmas! :D
Reply
:iconwestykid:
westykid Featured By Owner Dec 26, 2010  Professional General Artist
I'd love that igi, i'll see if i can catch you on msn some time and pester you :D i had a look at some tutorials for as3 basics and ALL of them started talking about flex and flashdevelop and stuff. am i right in thinking most of as3 is external class based? :<>
Reply
:iconthe-titan:
The-Titan Featured By Owner Dec 27, 2010  Professional Digital Artist
always at your service, and no it doesnt have to be class based, but i really do love them and i know why everyone else does too :3
Reply
:icongabrielverdon:
GabrielVerdon Featured By Owner Dec 25, 2010   Filmographer
Don't bother with actionscript 2, actionscript 3 not only has more functionality but it's easier to learn, especially if you've used other programming languages.
Reply
:iconwestykid:
westykid Featured By Owner Dec 25, 2010  Professional General Artist
Sure thing, i know absolutely nothing about the way as3 works though heh! Do you know any good places to learn the basics?
I'm sort of learning more advanced as2 so i can spice things up at work, the engine we use for our programs is made in as2 and i imagine it would be alot of work to re-write :/ doooh
Reply
:icongabrielverdon:
GabrielVerdon Featured By Owner Dec 25, 2010   Filmographer
Well I'm not really a pro at either, but I really love this site: [link]

Me and a friend made a small flash game recently and he used flashpunk for the engine, and said it was really awesome (flashpunk is a library for as3). I've heard good things about Flixel as well, but even if you don't use either library flash game dojo still has lots of tutorials for straight up as3.
Reply
:iconkkfullthrottle:
KKfullthrottle Featured By Owner Dec 25, 2010  Student Traditional Artist
lol. I like it muchly.
Reply
Add a Comment:
 
×




Details

Submitted on
December 25, 2010
Image Size
7.7 KB
Resolution
550×400
Link
Thumb
Embed

Stats

Views
2,621
Favourites
37 (who?)
Comments
25
Downloads
74
×