컴맹 탈출/스위시 소스

[스크랩] 눈내리는 소스

CaptainLee 2010. 1. 19. 20:20

*snow의 스크립트 소스

onload() {
scale=random(40)+10;
_xscale=_yscale=scale;
_alpha=scale+100;
_rotation=random(0);
r=scale/5;
yspeed=scale/10;
_y=random(700);
_x=random(700);
}
onenterframe(includingfirstframe){
_y+=yspeed;
if(_y>700){
_y=0;
_root.snow.gotoandplay(1);
}
}

---------------------------------------------------
* scene_1의 소스

onframe(1,afterplacedobjectevents){
for(i=0;i<300;i++)
{
duplicatesprite(_root.snow,"snow"+i,i);
}
}

출처 : nymph
글쓴이 : 님 프 원글보기
메모 :