el codigo que tengo en el pawel es este:
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_x+=5;
legs.play();
}
if (Key.isDown(Key.LEFT)) {
_x-=5;
legs.play();
}
if (Key.isDown (Key.DOWN)) {
_y+=5;
legs.play();
}
if (Key.isDown (Key.UP)) {
_y-=5;
legs.play();
}
}
onClipEvent (enterFrame){
if(_root.ground.hitTest(this._x, this._y-11, true)){
vel_y=0
jumping=false;
this._y+=36;
if(_root.ground.hitTest (this._x, this._y+1, true)){ this._y-=40;}
}
}
y el codigo en el mc monedas es este:
onClipEvent (enterFrame) {
if (this.hitTest(_root.pawel)) {
_root.score.text++;
_root.intento.text++;
gotoAndStop("hit");// intentando que este vaya al fotograma 2 llamado (hit)
unloadMovie(this);
}
}
