Alright, I’m just trying to make a simple space shooter game, all is good but one line of code won’t work…
Heres the whole thing:
onClipEvent(load){
moveSpeed=15;
root.laser._visible=false;
laserCounter=1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL) { laserCounter++;
_root.laser.duplicateMovieClip( “laser”+laserCounter, laserCounter );
_root[“laser”+laserCounter]._visible=true;
}
if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y+=moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}
}
And heres the error I get:
Error Scene=Scene 1, layer=Ship, frame=1:Line 11: ‘)’ expected
if (Key.isDown(Key.CONTROL) { laserCounter++;
Total ActionScript Errors: 1 Reported Errors: 1
I’ve tried everything and nothing works… if anyone can help it would be greatly appreciated! Thank you.