Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Shooting Multiple Missles



So I was trying out the gravity tutorial and thought I'd make a missile shooting thing out of it. The problem is that I can only shoot one at a time. I think it's a depth issue, but I'm not entirely sure (i is noob..) Anyway, I have an MC called bazooka, on the MC i have an attachMovie to a ball. Then I applied behavior to the ball. so essentially i have on the bazooka onClipEvent(enterFrame) {this.onRelease = function() { //attaches an MC called ball, i clicked on the linkage thingyattachMovie("ball", burret, this.getNextHighestDepth()); //sets behavior for the ballthis.burret.onEnterFrame = function() {Ball bahavior: Ball shoots at right wall and bounces back slightly as well as falling to the ground.}}} Anyway, again, I can only fire 1 ball at a time. The only way I can shoot off another is by removing the current attached movie clip. The file is below. Also, while I'm asking questions: I set up boundaries for my ball to bounce around in, but I can't seem to set up the main stage boundaries, it keeps setting to the sub-stages. For example, I want a ball to bounce back up as soon as it hits 340y, the ball will then drop 10y per frame until it counts 340y, then bounce back up. I was hoping it would hit 340 on the main stage, not by its own count (sorry if i made it confusing)



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 02-19-2008, 06:54 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Shooting Multiple Bullets
I have this code and it want it so that it will shoot multiple bullets, currentgun 2 is a shotgun, also how do I make it so that you can hold the mouse down to shoot?

Code:
onClipEvent (mouseDown) {
fireBullets();
var i;
function fireBullets() {
i++;
speed = _root.hero.currentgunspeed;
var newname = "bullet"+i;
_root.attachMovie("bullet", newname, i*100);
if (_root.hero.currentgun == 2){
i++;
_root.attachMovie("bullet", newname, i*100);
i++;
_root.attachMovie("bullet", newname, i*100);
}
_root[newname]._y = _root.hand._y;
_root[newname]._x = _root.hand._x;
_root[newname]._y = _root.hand._y;
_root[newname]._x = _root.hand._x;
_root[newname]._rotation = _root.hand._rotation;
_root[newname].sety = _root._ymouse;
_root[newname].setx = _root._xmouse;
_root[newname].createy = _root.hero._y;
_root[newname].createx = _root.hero._x;
_root[newname].timetokill = 0;
myRadians = Math.atan2(_root[newname].sety-_root.hero._y, _root[newname].setx-_root.hero._x);
_root.xMove = Math.cos(myRadians)*speed;
_root.yMove = Math.sin(myRadians)*speed;
_root[newname].movey = _root.ymove;
_root[newname].movex = _root.xmove;
_root[newname].onEnterFrame = function() {
this._y += this.movey;
this._x += this.movex;
this.timetokill++;
for (n=0; n<20; n++) {
var name = "enemy"+n;
if (_root[name].hitTest(this._x, this._y, true)) {
_root[name].health -= _root.hero.currentgundamage;
this.removeMovieClip();
}
}
if (_root.ground.hitTest(this._x-5, this._y, true)) {
this.removeMovieClip();
}
if (this._x>_root.hero._x+600 or this._x<_root.hero._x-600 or this._y>_root.hero._y+600 or this._y<_root.hero._y-600) {
this.removeMovieClip();
}
};
}
}

Shooting Multiple Bullets
I have this code and I want it so it will shoot multiple bullets currentgun 2 is a shotgun and also how do i make it so you can holddown the mouse to shoot?

Code:
onClipEvent (mouseDown) {
fireBullets();
var i;
function fireBullets() {
i++;
speed = _root.hero.currentgunspeed;
var newname = "bullet"+i;
_root.attachMovie("bullet", newname, i*100);
if (_root.hero.currentgun == 2){
i++;
_root.attachMovie("bullet", newname, i*100);
i++;
_root.attachMovie("bullet", newname, i*100);
}
_root[newname]._y = _root.hand._y;
_root[newname]._x = _root.hand._x;
_root[newname]._y = _root.hand._y;
_root[newname]._x = _root.hand._x;
_root[newname]._rotation = _root.hand._rotation;
_root[newname].sety = _root._ymouse;
_root[newname].setx = _root._xmouse;
_root[newname].createy = _root.hero._y;
_root[newname].createx = _root.hero._x;
_root[newname].timetokill = 0;
myRadians = Math.atan2(_root[newname].sety-_root.hero._y, _root[newname].setx-_root.hero._x);
_root.xMove = Math.cos(myRadians)*speed;
_root.yMove = Math.sin(myRadians)*speed;
_root[newname].movey = _root.ymove;
_root[newname].movex = _root.xmove;
_root[newname].onEnterFrame = function() {
this._y += this.movey;
this._x += this.movex;
this.timetokill++;
for (n=0; n<20; n++) {
var name = "enemy"+n;
if (_root[name].hitTest(this._x, this._y, true)) {
_root[name].health -= _root.hero.currentgundamage;
this.removeMovieClip();
}
}
if (_root.ground.hitTest(this._x-5, this._y, true)) {
this.removeMovieClip();
}
if (this._x>_root.hero._x+600 or this._x<_root.hero._x-600 or this._y>_root.hero._y+600 or this._y<_root.hero._y-600) {
this.removeMovieClip();
}
};
}
}

Shooting Multiple Bullets
Hello everyone,
I'm trying to make my platform game character shoot a gun, my character and gun are one movieclip and the bullet is another. The bullet mc starts on a blank frame with a stop() function, when I press the space bar the bullet mc plays from frame 2 which is a motion tween of the bullet quickly moving across the page. I've set the bullet's y and x values relative to the character mc so that the bullet always comes from the gun.

My issue is that if I press the space bar a bullet will fly out of the gun (great!) but if I press the space bar again, the first bullet disappears and the bullet animation starts again. I want to be able to shoot a new bullet every time I press the space bar without effecting the bullets that have already been shot.

...

if(event.keyCode == Keyboard.SPACE)
{

bullet_right_mc.y = (ball_mc.y -38);
bullet_right_mc.x = (ball_mc.x + 253);
bullet_right_mc.gotoAndPlay("shoot");
}

...

Thanks

Ryan

Shooting Multiple Bullets
Hello everyone,
I'm trying to make my platform game character shoot a gun, my character and gun are one movieclip and the bullet is another. The bullet mc starts on a blank frame with a stop() function, when I press the space bar the bullet mc plays from frame 2 which is a motion tween of the bullet quickly moving across the page. I've set the bullet's y and x values relative to the character mc so that the bullet always comes from the gun.

My issue is that if I press the space bar a bullet will fly out of the gun (great!) but if I press the space bar again, the first bullet disappears and the bullet animation starts again. I want to be able to shoot a new bullet every time I press the space bar without effecting the bullets that have already been shot.

...

if(event.keyCode == Keyboard.SPACE)
{

bullet_right_mc.y = (ball_mc.y -38);
bullet_right_mc.x = (ball_mc.x + 253);
bullet_right_mc.gotoAndPlay("shoot");
}

...

Thanks

Ryan

Shooting
I want to make a platform game with a shooting option. Does anybody know a script for schooting bullets.

Shooting
Hello,

I follow a tutorial about shooting laser from the spaceship.

Anyone here know how to make it shoot only once as in i hold down the fire button and it shoots one laser and not a long string of lasers?

Thank you!

Shooting
i made a 2d space shooter. everything is working well. only i cant figure out how to get that thing shoot. i just want the ship to shoot when i hit space. anyone can help me ?

i attachted the fla.

Shooting
Yea people, I have a problem here.
I want to be able to fire a bullet out off my gun when I press spacebar and that that bullet can kill a monster if it hits it.
Can somewone please tell me how to do that?

Shooting
I am making a paintball game and I want a computer that is always shooting at the player. How would I do this?

Shooting
Hi, can someone help me make a computer that is continally shooting?
I have this code which rotates the computer
onClipEvent (load) {
[load];
angle = 80;
speed = 2;
offset = 0;
rad_conv = Math.PI/180;
}
onClipEvent (enterFrame) {
X = this._x;
Y = this._y;
Xm = _root.spaceship._x;
Ym = _root.spaceship._y;
Xdiff = Xm-X;
Ydiff = Ym-Y;
radAngle = Math.atan2(Ydiff, Xdiff);
this._rotation = radAngle*360/(2*Math.PI);
}

Shooting
some1 can tell me plz what is wrong in here-

onClipEvent (enterFrame) {
if (_root.shot, hitTest(_root.bad)) {
_root.text = "Collision Detected";
} else {
_root.text = "No Collision";
}
}

because when I tested it, all I can see in the text area is No Collision even when the "shot" hitted the "bad".
so what can I do?

Shooting
I have few guestions about platform games. Okay,I know lots of things about platform games.But, Iīm making a megaman X platform game and I donīt know, how to do shooting.

I know that,the megamans yellow "bullet" is movie clip (MC).
But how to do shooting to right and to left.

Second thing,what I donīt know,is:

How to do jumping WITH DIFFERENT SPRITES,WHEN JUMPING AND DIFFERENT SPRITES,WHEN LANDING.I know that,how to DO JUMPING,but with different sprites when landing and actually jumping.

Okay,thatīs all I donīt know!!! (Iīm making that game on Macromedia Flash MX Professional 2004.

I really need help and I have readed all flashkit tutorials,without help!!! (sorry,but I live in Finland,so my english grammer sucks)
so, if you know something about firing in platform games and jumping with different sprites when lands and different sprites,when jumps!!!
Iīd REALLY APPRECIATE YOUR HELP!!!(you can e-mail me too)

Shooting
hiya
I am working on a shooting game, but I don't know how I can make my cannon to shoot...
I want to do a cannon thats shoots like in here-
http://www.squarecircleco.com/games/cannon/index.html

I attached my .fla so I hope that some of u will be able to help me.

*thanks

ps. I posted it in games forum too cuz I didnt know where it should be..

Shooting Gun
Does anyone know how to make a gun which rotates according to the angle of the mouse and shoots laser when the mouse clicks?(in the mouse direction)

I made a basic platform game according to the tutorial. I was thinking of advancing it to a better sort.

Regards,
Tongxn

[CS3] Shooting AS2
Ok.. i made a submarine game where u have to capture fish with a net, then i added stingray which are to be shot with a different weapon. The net is a bullet and I want the spear to be 2nd bullet but for some reason i cant have 2 bullets,, When i dont have the second bullets coding on the first bullet works fine but when i put in the second bullet's coding the first dosnt work.. any ideas??


p.s i have reduced alot of the fla. file because of size.

Shooting
I now realise this should have gone in the actionscript forum, sorry


Im having a problem in creating an MC duplicate when a button is pressed.
I want to be able to create a new 'playershot' MC each time space bar is hit.
Currently, each time i hit it the same MC returns to its
player_mc._y +2;
player_mc._x + 80;
location instead of duplicating it.

Also, if i hold the space bar, the playershot mc stays in the
player_mc._y +2;
player_mc._x + 80;
location, instead of a steam of bullets appearing.

Any ideas?




//player movement here but it works so i wont bother posting it


if (Key.isDown(Key.SPACE)) {
playershoot(); }

var i;

function playershoot()
{
i++;

var newname = "playershot" + i;

_root.attachMovie("playershot", newname, i*100);
_root[newname]._y = player_mc._y +2;
_root[newname]._x = player_mc._x + 80;

_root[newname].onEnterFrame = function()
{
var bullet_speed = 30;

this._x += bullet_speed;

if (this._x > 800)
{
this.removeMovieClip();
}
}

Shooting...
I'm having a little problem with my shooting in this side-scrolling game. I have two buttons to shoot with, (a) for shooting left, and (s) for shooting right. You'll see the problems I have with what I've made through my .fla, so this will save me some typing.

Thanks in advance - JohnnyTightLips

Shooting
I'm have a mc exported for actionscript as "laser" I want to create a new instance of it everytime someone presses the shooting key and then have it move horozontaly. Anyone know how to do that?

Shooting
ok i have this problem

im making a top veiw shooting game with tanks and i need to know how to shoot in all directions

im not asking for sombody to write out the exact code for my game i just would like a sample or somthing beacuse i already know how to shoot in one direction but i cant seem to modify it correctly

any tips??





























Edited: 12/15/2006 at 07:46:08 PM by sk8morestudyless

Shooting
im making a side scrolling game like mario and i want to get the guy to shoot in 2 directions but i can never get it right
does anybody have any sample code or anything beacuse i have no idea how to get the bullets to change direction

Shooting
I am trying to make a rpg game, and in it, the main character can rotate and i am having trouble figuring out what the action script would be to make the main character shoot. and have the bullet not rotate with the main character.

Shooting Tut
Hi,

I have just read the tut on the shooting aspect of games and i tried it for myself. I altered it so that you shoot on the x axis and you shoot when the space button is pressed.

My question is, how do you make the bullets shoot when the space button is releases? And or can make the bullet shoot at an interval of one second or so when the space is pressed... The bullets for me are shooting at a continuous streem and that may be a too great advantage for a user...

Any help would be great, Thanks...



-n00bFlasher

Need Shooting Help...
How would you go about making a movie clip shoot a bullet from it, but have the movieclip able to move around, like a sidescroller game...

Shooting
i face a problem with shooting...the "for" code doesn't run

code :
//this code is writen in spear fisherman's movie clip

onClipEvent (load) {
_root.spear_mc._visible=false;
shooting = false;
positionx = 0;
positiony = 0;
}


onClipEvent (enterFrame) {

if(Key.isDown(Key.SPACE)&&!shooting ){

shooting=true;
_root.spear_mc._x = this._x;
_root.spear_mc._y = this._y;
_root.spear_mc.gotoAndStop(2);
_root.spear_mc._xscale = -100;
_root.spear_mc._visible=true;

//until here the code runs right

for ( positionx = _root.spear_mc._x ; positionx < 800; positionx ++ ){
for (positiony = _root.spear_mc._y; positiony < 600; positiony++){
_root.spear_mc._x += this._positionx;
_root.spear_mc._y += this._positiony;
}

}

else if(Key.isDown(Key.SPACE)){
shooting = false;

}

}


please help!! thank you!

Help With Shooting Things
I have a little guy that shoots arrows. He can shoot while moving or when standing still. Problem is, eg.

I shoot an arrow using the ctrl key. Fine. If I happen to hit the ctrl key again, the original arrow that was shot off dissapears and a new arrow is shot. Also, if I just hold down the ctrl key, the arrow just sits at the point where it will start from and when i release the ctrl key, the arrow fires as it should. I know that it is something not put in the right spot or loop maybe? Here is my code attached to main char:

onClipEvent (enterFrame) {
shoot = 0;
arrowCounter = 0;
if (abletomove == true) {
if ((Key.isDown(Key.CONTROL)) && shoot == 0) {
n = _root.player._currentframe;
if (n == 1) {
arrowCounter++;
_root.arrowS.duplicateMovieClip("arrowS"+arrowCoun ter, arrowCounter);
_root["arrowS"+arrowCounter]._visible = true;
shoot = 1;
}
if (n == 2) {
arrowCounter++;
_root.arrowN.duplicateMovieClip("arrowN"+arrowCoun ter, arrowCounter);
_root["arrowN"+arrowCounter]._visible = true;
shoot = 1;
}
if (n == 3) {
arrowCounter++;
_root.arrowW.duplicateMovieClip("arrowW"+arrowCoun ter, arrowCounter);
_root["arrowW"+arrowCounter]._visible = true;
shoot = 1;
}
if (n == 4) {
arrowCounter++;
_root.arrowE.duplicateMovieClip("arrowE"+arrowCoun ter, arrowCounter);
_root["arrowE"+arrowCounter]._visible = true;
shoot = 1;
}
}

So I have a var called 'shoot' that basically prevents more than one arrow from being fired at a time. Please help me, I know this is one of those 'DOH' easy problems but I am stumped. :s

Shooting At Any Angle
Hi,At the moment I have a movie clip that can move left right, up, and down, as well as rotate to any angle by keystroke. I was wondering though how
to write the code so it can shoot at any angle of rotation? At the moment the laser will follow the rotation of the movieclip, but will only go in the _x or
the _y coordinate, never both. Any ideas?

This is on the movieclip:
onClipEvent (keyDown) {
if (Key.getCode() == Key.RIGHT) {
_x = _x+2;
} else if (Key.getCode() == Key.LEFT) {
_x = _x-2;
} else if (Key.getCode() == 40) {
_y = _y+2;
} else if (Key.getCode() == 38) {
_y = _y-2;
} else if (Key.getCode() == 90) {
_rotation += -2;
_root.laser._rotation += -2;
} else if (Key.getCode() == 88) {
_rotation += 2;
_root.laser._rotation += 2;
} else if (Key.getCode() == 32) {
tank_x = getProperty("_root.tank", _x);
tank_y = getProperty("_root.tank", _y);
_root.laser.duplicateMovieClip("laser");
setProperty (_root.laser, _x, tank_x);
setProperty (_root.laser, _y, tank_y);


This is on the laser at the moment:

onClipEvent (load) {
laserMoveSpeed = 20;
this._x = _root.tank._x+60;
this._y = _root.tank._y;
}
onClipEvent (enterFrame) {
this._x += laserMoveSpeed;
if (this._x>600 or this._y<0) {
this.removeMovieClip();


Thanks,

Andy
Art-barn.com

1st Person Shooting?
Help! I want to find a tutorial on creating a 1st person shooting game, or just get some advice.

Can anybody help?

Please mail me if you can!

Soon Done, Please Help Me Out With My Shooting Problem
Hello everbody !

Thanks for all help i've got here, youre great!

i have one more problem 2 finish my game.
In my shoot'em up game i want to force the user to press the CTRL key everytime he wanna shoot, now he can just hold it down..

my code is like this, and i dont know how to force the user to press every time he wants to shoot


if (Key.isDown(Key.CONTROL)) {
laserskuddTeller++;
_root.laserskudd.duplicateMovieClip("laser"+lasers kuddTeller, laserskuddTeller);
_root["laser"+laserskuddTeller]._visible = true;


if someone can help me with this one i would be very thankful!!


S.boy

Soccer Shooting Help
I have a soccer game with a player who can run in all 8 directions using the arrow keys N, NE, E etc.. he also shoots the ball when the player has it (via a powerbar). However he only shoots Upwards regardless of the direction he is facing.
How would i get the ball to fire off in the right direction? eg. if player was running UpRight (North East direction) then the ball would fire in this direction?

Would i be thinking along the right lines to say if the player was facing NE that the angle of the ball that comes off Player would be 45° or NW equals -45°?

any help would be appreciated.



This script on main timeline allows the Player to get the ball and run with it attached to him also allows the player to shoot upwards with a powerbar (power) (it was adapted from a game which depended on rotation of the player so may not be that useful)

if (ball._x>Player._x-20 && ball._x<Player._x+20 && ball._y>Player._y-20 && ball._y<Player._y+20) {
Player.gotball = 1;
ball._rotation = Player._rotation;
ball._y = Player._y-math.cos(0.01745*Player._rotation)*15;
ball._x = Player._x+math.sin(0.01745*Player._rotation)*15;
} else {
Player.gotball = 0;
}
power._width = Player.force*5;
if (key.isdown(key.shift) && Player.gotball) {
if (Player.force<20) {
Player.force += 0.5;
}
} else {
if (Player.gotball == 1) {
ball.speed = Player.force;
ball.play();
}
Player.force = 0;
}


--------------------------
The ball mc has the following within it:

FRAME 1
stop action

FRAME 2

if (_y<=bounds.up) {
_y = bounds.up;
if (_rotation>=0) {
_rotation = 180-_rotation;
} else {
_rotation = -(180+_rotation);
}
} else if (_y>=bounds.down) {
_y = bounds.down;
if (_rotation>=0) {
_rotation = -(180+_rotation);
} else {
_rotation = 180-_rotation;
}
}
if (_x<=bounds.left) {
_x = bounds.left;
_rotation = -_rotation;
} else if (_x>=bounds.right) {
_x = bounds.right;
_rotation = -_rotation;
}
_y -= Math.cos(0.01745*_rotation)*speed;
_x += Math.sin(0.01745*_rotation)*speed;
if (speed>0.1) {
speed -= 0.1;
} else {
speed = 0;
prevFrame();
}


FRAME 3

prevFrame();
play();


thanks
Geoff

Enemy Shooting
How do you make an enemy shoot? I am not using the mouse in my game, otherwise I would have used flashjunkie's tutorial. Thanks.

Help With Shooting Game
Im makeing this game and i want a picture to load when someone clicks the mouse, i only want the pic to load for a short time becuase it is a mussle flash. Can someone post the action script i would need to use with flash 5. thanks

Shooting Gun Effect
what script do i use to make this

Bullet Shooting?~
how to write the script when push the mouse and it shoot the bullet out?

Intelligent Shooting
Hey, in the game i am currently making i have enemy ships that fire. at present the fire is just moving with "this._x -= 20;".

What im trying to achieve is for the shot to know where the spaceship is, and head towards it, idealy when fired there would be a few lines of code that take the _x and _y positions of the spaceship instance(but only at the time of fire, i dont want the fire to follow the spacehip instance) and head towards it, then carry on going untill off screen, rather than just stop there.

Ive been trying this for hours, but am at a complete loss, can any1 help me?

Thanks
Scott.

Shooting Problem
I got this code from a tutorial, it's works fine but I want the bullet to be placed a little away from the counter (who shoots).
Now the bullets start in the middle of him, and thats a problem cuz I've maked some hitTests with the bullet... So plz help with this problem...

// set bullet location and direction
clip = _root["bullet"+level];
clip._x = counterA._x;
clip._y = counterA._y;
clip.dx = 20.0*Math.cos(2.0*Math.PI*(counterA._rotation-95+random(15))/360.0);
clip.dy = 20.0*Math.sin(2.0*Math.PI*(counterA._rotation-95+random(15))/360.0);

// add to bullets array
bullets.push(clip);


TjaIfe

Shooting Game
I need to create a simple shooting game involving a crosshair, target, score counter, i made one a while ago but to need to find a tutprial to refresh my memory.does ne one know of ne that would fit that description?please help!

Shooting Game
I'm trying to make a small shooting game where you can aim a gun, run around and shoot stuff.

I have everything done except for the bullets and collision. I want to make the game so bullets fly instantly.

How could I make the hit test that would hit a box before it would hit an enemy if the bullets move so quickly?

Shooting Problam
How can I do, that when I press on any place on my stage, a rocket will come to that place, from a mc?

-thanks

Car Chase Shooting
Ok, the typical qu. "how do you make a bullet shoot from a MC" qu. most of been asked so much now! But i searched, and didnt really find anything.
So how do you use script a bullet to be shoot from the _x and _y of an MC,
do you use duplicateMovieClip script?
Ive tried that, a simple


onClipEvent (enterFrame){
if (Key.isDown(Key.SPACE)) {
i++
duplicateMovieClip(_root.bullet, "bullet"+i, i);
}
}

But the MC, just goes back to the place it starts from! (I used onClipEvent (load) to get the _x and _y right and an onClipEvent (enterframe) for the movement).Click here to see the swf
.Click me!
to show wha (the graphics suck i know, they are blocks! i do the graphics after the script)t is happening!

What is wrong with my script? I know something is wrong? But how do i fix it!

Thanks in advance!

Shooting, Up, Down, Left And Right
Alot of people deserve praise for their tutorials and help on here about how to fire weapons. i found it very useful, however I cannot work out how I could get a character to fire looking left, right, and shooting upwards. currently all my demo's end up in the character firing in one direction and thats all....lol. can anyone help me, or tell me where I can work out how to have a chracter shooting in the direction they are facing, left or right, and up and down. (like metal slug)

Thanks,

Lee.

Shooting And Landing
I have few guestions about platform games. Okay,I know lots of things about platform games.But, Iīm making a megaman X platform game and I donīt know, how to do shooting.

I know that,the megamans yellow "bullet" is movie clip (MC).
But how to do shooting to right and to left.

Second thing,what I donīt know,is:

How to do jumping WITH DIFFERENT SPRITES,WHEN JUMPING AND DIFFERENT SPRITES,WHEN LANDING.I know that,how to DO JUMPING,but with different sprites when landing and actually jumping.

Okay,thatīs all I donīt know!!! (Iīm making that game on Macromedia Flash MX Professional 2004.

I really need help and I have readed all flashkit tutorials,without help!!! (sorry,but I live in Finland,so my english grammer sucks)
so, if you know something about firing in platform games and jumping with different sprites when lands and different sprites,when jumps!!!
Iīd REALLY APPRECIATE YOUR HELP!!!(you can e-mail me too)

Shooting Lasers
i got the movement and such done with a spaceship i made, and i set lasers to shoot when i push control, but when i test the movie it says this

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 7: ')' expected
onClipEvent (enterFrame) { if (Key.isDown(Key.CONTROL) { laserCounter++;

i don't know how to fix it

Shooting Lasers
i got the movement and such done with a spaceship i made, and i set lasers to shoot when i push control, but when i test the movie it says this

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 7: ')' expected
onClipEvent (enterFrame) { if (Key.isDown(Key.CONTROL) { laserCounter++;

i don't know how to fix it

p.s. i'm on flash five

Shooting Game Help
hey, im trying to get this game up and running, it wont look like this, but i need to get the code right. I need someone to tell me how i can get the gun to shoot, and explain the code if u would.

Shooting Problem
Hello everyone,
I was wondering how I could have a gun shoot, and have whatever the gun's laser pointer was pointed at get hit? I would like to not have actual bullets if at all possible. Also, could I have there be some interaction between the laser and the object it's pointed at? I looked around in the tutorial section, but there wasnt anything that I was really looking for. Thanks!

P.S. The "gun" in question is a button, not a movie clip, that fallows the mouse (if that helps at all).

Shooting Game
hi, can anybody tell me where can find all the source code of shooting game? i need to do it but i can't find any related source code of the flash shooting game...please help...

Fix A Shooting Game
i have this shooting duck game with not so perfect script. i have problem to keep each duck the same destance apart from each other. duck will go faster and faster after shoot a duck...... and when they mover really fast, ducks appear too close or too far from each others. how to keep them consistency. Also, i need a timer for all three levels so each level will need to finish within 10 second. i made the timer function in the game but it is not working. 1. it should start timing once click on the buttong from"introwin" adn start new timing over again after click on 'introwin2". Timing will be 10 seconds. Also, if time reach before user finish the level then should direct to gotoandstop("non").

thanks.

Fix A Shooting Game
i have this shooting duck game with not so perfect script. i have problem to keep each duck the same destance apart from each other. duck will go faster and faster after shoot a duck...... and when they mover really fast, ducks appear too close or too far from each others. how to keep them consistency. Also, i need a timer for all three levels so each level will need to finish within 10 second. . i made the timer function in the game but it is not working. 1. it should start timing once click on the buttong from"introwin" adn start new timing over again after click on 'introwin2". Timing will be 10 seconds. Also, if time reach before user finish the level then should direct to gotoandstop("non").

thanks.

Buttons And Shooting
I know how to make a MC move and how to deal with clicking a button but is there a way to make a button move?

Copyright Đ 2005-08 www.BigResource.com, All rights reserved