00:00
00:00

Ultra Wars-PREMIS

Share Collapse

Author Comments

This is a working version, but it is only Alpha-phase, The reason I have posted it is I require help, specifically with the shooting script; I have everything working correctly yet cant for the life of me figure out how to move the bullet, which at this stage when you shoot it it creates the movieclip of the bullet, yet I can't seem to get it moving. If anyone could help me, or point m e in the right direction I would greatly appreciate it.

Thanks in advance.

Jackson Bradshaw

EDIT: Here is what I have for creating my bullets, i have yet to write any script on the bullet to make it move in the direction of the mouse if anyone could help plz send a comment

onClipEvent (load) {
i = 0;
shoot = true;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE) && shoot) {
_root.shoot.duplicateMovi eClip("shoot"+i, i);
_root["shoot"+i]._x = _x;
_root["shoot"+i]._y = _y;
_root["shoot"+i]._rotatio n = _rotation;
shoot = false;
i++;
} else if (!Key.isDown(Key.SPACE)) {
shoot = true;
}
}

Log in / sign up to vote & review!

Newgrounds accounts are free and registered users see fewer ads!

Has potential...

Posting in the forums would be your best bet to get an answer for your bullet problems. One thing I was thinking you should do is once you actually get the bullets working correctly and the enemies appearing, it'll be really shitty shooting and trying to fly. If you kept the bullet how they are and just replaced the image with a mine, it would actually be kind of sweet (in my opinion). I haven't played a game like that on Newgrounds ever.

Good Start

I vote 5 for the half that worked. You'll get a 10 once its done. :)

This doesn't belong here.

It's a decent start, but this belongs in the Alphas. If you need help with the script, then post a query in the forums. There are an infinite number of ways to do a piece of AS, and we don't know what your script looks like.

Anyway, as I said, it's decent enough. Post it here when you have it fully working.

hmm...

though I dont know much about "shooting" with action script I can see a lot of potiental in this, good luck!

for the bullet

You have to use trigonometry. When you make the bullet, set rotation towards mouse. Then use sine and cosine to find the distance it travels up and left. should look something like this

_y + math.sin(_rotation)*speed

something like that

jack-o-sticks responds:

I've tried that one, but to no avail. I think i need to go do some research -_-

Credits & Info

Views
4,682
Faves:
1
Votes
9
Score
1.40 / 5.00

Uploaded
Nov 2, 2008
1:45 AM EDT
Genre
Action - Shooter - Multidirectional