Be a Supporter!

Ultra Wars-PREMIS

rated 1.64 / 5 stars
Share Links:
Action - Shooter - Multidirectional

Click on an icon to vote on this!

Credits & Info

Nov 2, 2008 | 1:45 AM EST

If you liked this, check these out!

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;
} else if (!Key.isDown(Key.SPACE)) {
shoot = true;



Rated 2.5 / 5 stars

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.


Rated 1 / 5 stars

Errr's not even that good of a start, since your code is very weak.
I try to help people new to Flash, so here it is again:
-Don't use duplicateMovieClip!!! NEVER! Always use attachMovie, with the bullet in the library with a linkage name. This way you don't need to have an instance on the stage, and it looks cleaner.
-Always write code on the frame, not on MovieClips. I think this is more of personal opinion, but it's essential when writing big games, otherwise you have code lying around in random movieclips, and if there's a problem, it's hard to find.
-Instead of putting _root["shoot"+i], assign a variable at first:
//You can copy paste from here on down-
newBullet = _root.attachMovie("bullet","bullet"+i ,i);
newBullet._x = 50;
newBullet._y = 50;
//And so on.
/*-For moving in the direction of the mouse, you need to get the radians from the degrees of _rotation:*/
newBullet.speed = 5;
newBullet._rotation = _rotation;
var radians = Math.PI/180*this._rotation;
/*Then use cosine and sine to get the correct values (the speed var isn't
necessary, but it's easier to change that once, than go looking for all the calculations.*/
newBullet.xSpeed = Math.cos(radians);
newBullet.ySpeed = Math.sin(radians);
newBullet.onEnterFrame = function () {
this._x += this.xSpeed*this.speed;
this._y += this.ySpeed*this.speed;
If you copy and paste the above instead of what you have for shooting, it should work, you just need to go to your library and right-click on your bullet symbol, select linkage name, and call it bullet.

Anyways, I hope that helps. I usually don't go to all the trouble of writing code, but w/e, here it is, if it doesn't work, PM me.


jack-o-sticks responds:

thanks man


Rated 2.5 / 5 stars

Good Start

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


Rated 2.5 / 5 stars

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.


Rated 3.5 / 5 stars


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