*がっちゃん*回答ポイント なしウォッチ

flashでアクションスプリクトを使って雪を降らせるんですが、

56フレームで降らせる雪をとめたいんですが、やり方が分かりません。
おしてください。


onClipEvent (load) {
//ムービーサイズをここで指定します
movieWidth = 300;
movieHeight = 250;

//variables that will modify the falling snow
i = 1+Math.random()*2;
k = -Math.PI+Math.random()*Math.PI;

//giving each snowflake unique characteristics
this._xscale = this._yscale=100+Math.random()*100;
this._alpha = 75+Math.random()*100;
this._x = -10+Math.random()*movieWidth;
this._y = -10+Math.random()*movieHeight;
}
onClipEvent (enterFrame) {
//putting it all together
rad += (k/180)*Math.PI;
this._x -= Math.cos(rad);
this._y += i;
if (this._y>=movieHeight) {
this._y = -5;
}
if ((this._x>=movieWidth) || (this._x<=0)) {
this._x = -10+Math.random()*movieWidth;
this._y = -5;
}
}

ログインして回答する

ベストアンサー

その他の回答

この質問へのコメント

コメントはありません

この質問への反応(ブックマークコメント)

質問の情報

登録日時
2012-05-22 12:03:27
終了日時
2012-05-22 13:26:15
回答条件
1人5回まで

この質問のカテゴリ

この質問に含まれるキーワード

Flash2073cos40

人気の質問

メニュー

PC版