Código ActionScript :
onClipEvent(load){
veloc = 7;
grav = 0;
r = _height/2;
suel = false;
salto = 15;
}
onClipEvent(enterFrame){
grav++;
this._y+=grav;
if(_root.suelo.hitTest(this._x,this._y+r,true)){
grav = -1;
suel = true;
}else{
suel = false;
}
if(Key.isDown(Key.RIGHT)){
this._x+=veloc;
this._xscale = 100;
}
if(Key.isDown(Key.LEFT)){
this._x-=veloc;
this._xscale = -100;
}
if(Key.isDown(Key.UP)&& suel){
grav = -salto;
}
}Mi otra pregunta, y la mas importante, como agrego animación de caminar al apretar los botones RIGHT y LEFT, intenté poner un Stop(); en el fotograma 1 y haciendo la animación de caminar en el fotograma 2 (adentro de el MC de mi Char) y puse el code: this.play(2); en donde correspondía, pero se ve extraño.. que me recomiendan hacer
GRACIAS
saludos!
