Under rating threshold (hideshow)
ok i downloaded the source file, extracted it, but i don't find the explosion clip. Ya, it says from the fla file, but i got no fla file. Please help, i'm loving this thing and now i'm stuck here!
Under rating threshold (hideshow)
I suppose the instance name can make some problems if it has the same name as the class name. So you should name it not "ship" but something other. Also don't forget to change "_root.ship" to "_root.newInstanceName"
Under rating threshold (hideshow)
Hello? im having a problem. you see, the source files are not working. it says" unexpected file format.". can anyone help me?
PS. im using macromedia flash 8 oh, and to those comments that say they cant download the files, right-click on the link and select open in new window. it will open then close then it will start downloading.
Under rating threshold (hideshow)
I made my explosion really really really big and didn't make it a clip so it only lasted for one frame. It adds a nice touch, whenever you hit an enemy it looks like an explosive balloon bursting. Try it.
Under rating threshold (hideshow)
everyone, please note that you must also remove your enemies from your array of enemies before you call .removeMovieClip();
if you don't, your bullets will continue to try to run physics checks on them. display enemies.length if you don't believe me. Not much a problem for this game's scale, but if you have smaller, more numerous foes and your weapon shoots faster, this can progressively slow down the game.
My solution
Look up the splice() function of arrays.
create an index variable in your enemy class
update the enemies' index value on spawn
call enemies.splice(index, 1);
loop through the array updating the index values
Under rating threshold (hideshow)
Morning. I have problem in step 4. The Enemy ship stopped arriving to frame and the Hero ship cannot move or shot. (But the background still moving...) anyone know how to solve it?
Under rating threshold (hideshow)
I fixed my problem by making sure that the X and Y coordinates of the symbols are the same, and to make sure to have the...
explosion._x = _x;
explosion._y = _y;
written out correctly.
Under rating threshold (hideshow)
Help, I'm on Step 7 when you add the explosion animation to your enemy ship, but when I run into it, the explosion happens left and down from where the actual enemy is. What should I do?
Under rating threshold (hideshow)
Using CS5, I was able to copy the explosion animation directly out of their .fla and already have everything linked up to my Explosion class
Just thought I'd share this information
Under rating threshold (hideshow)
For some odd reason after completing some of these steps, the Enemy Ships spawn extremely fast, I have no idea why though! :<
Under rating threshold (hideshow)
disregard my other post.
i found a way to make the bullet intervals random.
just make the shoot timer on the onenterframe function Math.random()*number desired.
note that multiple Math.random()'s may be needed :P
Under rating threshold (hideshow)
for some reason when i don't copy the code and type it in instead, the game doesn't work even if it is completely right. please help!
Under rating threshold (hideshow)
Daxter, it happens because the computers find it difficult to notice when three or more keys are pressed simultaneously. It has nothing to do with the coding of the game.
Under rating threshold (hideshow)
I can't help but notice that in my game, when i keep Space button down and keep shooting, I cannot move diagonally in any direction apart from RIGHT-UP. I thought that I had done something wrong and started checking every Script file; then, I tried the creator's swf and noticed that the same thing happens there too.... Does anybody know why???
Under rating threshold (hideshow)
Where do u get the Explosion clip animation??????? I downloaded the source files and it was a WinRaR, what is the explosion thing called?? I cant find it in side the files
Under rating threshold (hideshow)
This tutorial is so helpful i have the half of my game finished and it looks perfect.You should thank kongregate for this thing.
Under rating threshold (hideshow)
"this statement is not permitted in a class definition"
Got that in EnemyShip.as, err, disables everything I've done in past shooturials =/
Not sure what to do, I'm using CS5, as2, anyone could message me with some help? Thanks!
Under rating threshold (hideshow)
the collision detection in my game works, but only on the ships. the missiles just fly by without any reaction. my code is this: class Missile extends MovieClip{var speed;function onLoad(){
speed = 20;}function onEnterFrame(){_x += speed;for(var i in _root.ship.enemies){if(this.hitTest( _root.ship.enemies[i] ) ){this.removeMovieClip();_root.ship.enemies[i].explode();}}if(_x > 600){this.removeMovieClip();} }} Is anything wrong with it?
Under rating threshold (hideshow)
My code is perfect, but the enemies just immediately disappear when I have the code like that in the "EnemyShip". If I change it around, they will fly by, but they won't explode on contact, what should I do to fix this, please message me if possible.
Under rating threshold (hideshow)
Ok, I fixed my earlier problem. But now my missiles wont hit the enemy. can someone please tell me how to fix this. My code is the exact same as the tutorials.
Under rating threshold (hideshow)
Ok i figured out that all my functions stop working when i change my ships instance name to "Ship". Can someone tell me why?
Under rating threshold (hideshow)
Ok, this tutorial has been working really well for me. And I dont think its this tutorials fault, but all my stuff just stopped working. Before this one my ship was flying and shooting, and enemies were being randomly generated. But after I added the collision detection everything stopped working. The only thing that does still work is my background. can anyone help me out please?
Under rating threshold (hideshow)
Ok my ship is killing the enemy ships, but now my missiles will only kill some of the ships... Roughly 1 in every 6 enemy ships will be hit by my bullet. The rest wont...