Este es el codigo q estoy usando:
onClipEvent (mouseDown) {
this.status = "bajando";
this.velocidad = 0;
this.alturaSuelo = _root.suelo._y;
}
onClipEvent (enterFrame) {
if (status == "bajando") {
this._y += velocidad;
velocidad += 1; }
else if (status == "subiendo") {
this._y -= velocidad;
velocidad -= 1;
if (velocidad<=0) {
status = "bajando";
}
}
}
onClipEvent (enterFrame) {
if (status == "bajando") {
this._y += velocidad;
velocidad +=1;
if (this ._ y>=alturaSuelo) { <<<<<<<<<<<< LINEA 23
status = "subiendo";
velocidad = velocidad*0.5;
}
Y me sale este error:
**Error** Escena=Scene 1, capa=logo, fotograma=1:Línea 23: Se espera ')'
if (this ._ y>=alturaSuelo) {
Ayudita please