Movimento graduale (a tratti), targato max_400

« Older   Newer »
  Share  
max_400
view post Posted on 28/4/2010, 01:47     +1   -1




clikkate dentro lo stage e premete freccetta destra


onClipEvent (load) {
velocita=10;
numero=Math.floor(velocita);
}

onClipEvent (enterFrame) {
if(Key.isDown(Key.RIGHT)){
this.onEnterFrame=function(){
this._x+=velocita;
velocita=velocita-0.5;
numero=Math.floor(velocita);
if(velocita <=0){
delete this.onEnterFrame;
velocita=10;
numero=Math.floor(velocita);
}
}
}

}

Edited by max_400 - 28/4/2010, 03:04

Download attachment
movimento_graduale.rar ( Number of downloads: 54 )

 
Top
0 replies since 28/4/2010, 01:47   24 views
  Share