Julio 11, 2007

Código para que se mueva la nave ó superman ó lo que quieran que se mueva y dispare: 

onClipEvent (enterFrame) {
 if (Key.isDown(38)) {
  _y = (_y-10);
 }
 if (Key.isDown(40)) {
  _y = (_y+10);
 }
 if (Key.isDown(key.SPACE)){
  laserFire++;
  _root.fuego.duplicateMovieClip (“fuego”+laserFire,laserFire);
  _root["fuego"+laserFire]._visible=true;
 }
}
onClipEvent (load){
 _root.fuego._visible=false;
 mov=10;
 laserFire=1;
}

Entry Filed under: PUBLICIDAD DIGITAL. .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

Julio 2007
L M X J V S D
« Jun   Oct »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Most Recent Posts