Menu

꽃바람

2016. 5. 26. 11:32

안개핑 Swish study

 

;

Scene-1 에 들어가는 액션...

 

onFrame (1) {

x = new array();

y = new array();

xs = new array();

ys = new array();

xspeed = new array();

yspeed = new array();

xsspeed = new array();

ysspeed = new array();

a = new array();

aspeed = new array();

r = new array();

rspeed = new array();

centerx = new array();

centery = new array();

clip = new array();

lines = new array();

for (n = 0; n < 25; n++) {

x[n] = random(400);

y[n] = random(400);

xs[n] = random(100);

ys[n] = random(100);

xspeed[n] = random(100);

yspeed[n] = 1;

xsspeed[n] = random(10);

ysspeed[n] = random(10);

a[n] = random(100);

aspeed[n] = random(10);

r[n] = 0;

rspeed[n] = random(10);

centerx[n] = random(400);

centery[n] = random(400);

clip[n] = "iig59" + n;

lines[n] = "lines" + n;

}

// end of for

}

onFrame (2) {

clear();

for (n = 0; n < 25; n++) {

duplicateMovieClip("_root.iig59", clip[n], 16384 + n);

setProperty(clip[n], _x, x[n] + centerx[n]);

setProperty(clip[n], _y, y[n] + centery[n]);

setProperty(clip[n], _rotation, r[n]);

setProperty(clip[n], _alpha, y[n] + 60);

setProperty(clip[n], _xscale, y[n] + 100);

setProperty(clip[n], _yscale, y[n] + 100);

}

// end of for

}

onFrame (3) {

for (n = 0; n < 25; n++) {

xspeed[n] = xspeed[n] - 0.050000;

yspeed[n] = yspeed[n] - 0.050000;

x[n] = math.cos(xspeed[n]) * 100;

y[n] = math.sin(xspeed[n]) * 50;

r[n] = x[n] / 2;

}

// end of for

gotoSceneAndPlay("",2);

}

 

'Swish study' 카테고리의 다른 글

화면전환-6  (0) 2016.05.26
바레이 방식의 겔러리  (0) 2016.05.26
slidemenu  (0) 2016.05.26
은하수  (0) 2016.05.26
화면전환-5  (0) 2016.05.26