Código ActionScript :
onClipEvent (load) { nitrovar = 20; nitropul = 30; } onClipEvent (enterFrame) { if (Key.isDown(Key.SPACE)) { nitrovar -= 1; } if (nitrovar < 20) { this._x += nitropul; } else if (nitrovar < 0) { this._x -= 0; } }
Aquí os muestro el código ojala puedan ayudarme muchas gracias de antemano.