[Flash] Script of smoke

xiaoxiao2021-03-06  51

// First build a cigarette track MC (name action), then build a MC (name yanction), drag the Jujun's MC (Action) and name Yan

// Place the following code in the first frame of the MC (name yanction).

i = 1;

// Set the variable

Oneterframe = function () {

// Call frame by frame

IF (i <= 20) {

i ;

DuplicateMovieClip ("Yan", "Yan" i, i);

// Copy the smoke

THIS ["" " i] ._ Yscale = random (50) 30;

// Set the y-axis ratio of the copied smoke.

} else {

i = 1;

}

}

// drag the MC (YanAction).

转载请注明原文地址:https://www.9cbs.com/read-116697.html

New Post(0)