Under rating threshold (hideshow)
Please help, the enemy missiles spawn move about 10 pxles then freeze and disapper, and the hero ships missiles dosn't blow up the enemy ship, I have tried everything, but nothing works, I also have replacedthe original classes whit the classes from the download.
Under rating threshold (hideshow)
.....don't know if this is a re post or if my internet is acting up.....
short version
i need help getting the full source code, or the whole original game file: which ever it was i had before my computer bsod-ed on me. i have all i need but no file to copy the explosion from to paste into my own.
all help is great thanks
-i did right click and download the source code from multiple pages but none have the file i need
Under rating threshold (hideshow)
@SlayerOfPersians I almost had that problem... I accidentally put it in in a way that my second ship launching code was completely separate from the first, and was launching one each frame... I caught on when I was getting 61 enemies every two seconds instead of 1.
Under rating threshold (hideshow)
I don't know if anyone can help me out but, I'm getting this in my output
"256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie."
I assume it's coming from the missile because it pops that up as soon as the missile hits an enemy ship.
Under rating threshold (hideshow)
If i am reading the first page correctly....... this should be the apex of the Tutorial process, i'm very happy to have made it this far, just 5 hours ago i would have looked at these codes and went "WTF!?!?!", thank you Kongregate for your easy tutorials and helping out us new people who want to take a hand at game developing.
Under rating threshold (hideshow)
step 9 causes a memory leak. each time we make the enemy array larger, the for loop that checks if your shots hit anything takes a little but larger. if you decided to expand the game with that code, you'll start to get massive slowdown as the array reaches the ten thousands or so. any chance someone reading this can help me write a splice function to keep the array size reasonable?
Under rating threshold (hideshow)
Hi guys. When I try to use ._currentFrame and ._totalFrames there is an error that reads: "there is no property with this name". Help plz
Under rating threshold (hideshow)
can someone tell me how to insert the explosion in cs5.5? cause when i try to open the Fla file it says "Unexpected file format"
Under rating threshold (hideshow)
I have searched through my code a million times, and cant find any reason why my explosion animation loops constantly when I destroy an enemy. I even tried importing the kongregate explosion file + code, to no effect, so the problem obviously doesnt lie with explosion.as file. PLEASE help, its the only major problem Ive encountered so far and am unable to figure this one out on my own, ive been stuck on it for two days!
Under rating threshold (hideshow)
Everyone who can only shoot half their enemy ships, listen up: You're not putting all the enemy ships in the enemy array. Many of us weren't careful when we copied and pasted the Shootorial code into the onEnter function, so now we have two independent ship launching codes. Basically, if you forget to delete a certain bit of code, half of the new enemy ships are not pushed into the array and so aren't affected by missiles. To correct this, look at the source ship.as and compare it to your code under the onEnter function, specifically the part that reads "if (enemyTimer..."
I deleted a line from my ship.as to match the source, and it works without a hitch now!
Under rating threshold (hideshow)
Got another question, im not using the downloads with this, im making all that myself so i can learn it too, does anyone know a good animation tutorial, i looked on the web but cant find anything that seems to help/work
Under rating threshold (hideshow)
well i tried this and i got to the point with the explosion and now my game just flashes every few seconds, its just white and then for like 1 frame the game shows, and then goes white again, i deleted everything i had added before this and it still does it, someone PLEASE help me, ive been working for the whole day on this and i really dont want to have to start over only to make another damn mistake
Under rating threshold (hideshow)
For all people who have problems with missiles that don't make enemie explode: after a week I finally solved it! You have to make sure that the name of your 'ship' is exactely filled in the codes, and it must be different from the class name. So I called it 'ShipInstance' and it only worked after I filled in this:
for(var i in _root.ShipInstance.enemies)
{
if(this.hitTest( _root.ShipInstance.enemies[i] ) )
{
this.removeMovieClip();
_root.ShipInstance.enemies[i].explode();
}
Under rating threshold (hideshow)
@jumpking55, that's because we are trying to access to a variable array which if you remember we have it defined in the ship. it's very wise to store it there because always will be the ship instance before any missile or enemy, so we can assure that the array enemies exists. Notice that is like a path, you can say: "from the root timeline (the main one), look for the ship, then inside it, give me the array enemies". I hope this helped. :P
Under rating threshold (hideshow)
I don't know why the for..in loop is still not working for me... the instance's name is zhip, I added enemies.push(enemy); in the class Ship right after creating a new enemy (syntax test is ok). But in the Missile class on the very first line of the loop for(var i in _root.zhip.enemies) it founds and error, says class definition doesn't allow this declaration.
Please help! =(
Under rating threshold (hideshow)
When I wanted to import the .fla file into the Flash library, the Flash said: "One or more files were not imported because there were problems reading them." Also, nothing moves in the test movie. I have Flash CS 5.5, don't know if this is the problem.
Under rating threshold (hideshow)
please help whenever i hit the enemy dead on it kills it but when i hit it with my side it kills all enemies on screen, i really need help
Under rating threshold (hideshow)
I need some help. When I added the Array, it doubled the number of enemies that spawned. I didn't worry about it at the time, but now I've added Hero Missiles and exactly half of the enemy ships can be destroyed by missiles; the other half just keep going. However, they can all be destroyed if I ram into them. The only thing I can think of would be that somehow the second half of the ships are not in the same array as the first. Please help.
Under rating threshold (hideshow)
now it says this: EnemyMissle.as, Line 1 The class 'EnemyShip' needs to be defined in a file whose relative path is 'EnemyShip.as'.
Under rating threshold (hideshow)
Nevermind. Answer is yes. Kind of cheap that AS2 does that. I would expect more than a good old fashioned bounding box-style thing. Ah, well. It's still very useful.
Under rating threshold (hideshow)
Does "hitTest()" return "True" if transparent bits from one png image hit transparent pixels on another? I mean, if the bounding boxes touch, but not their colored pixels. Does that make any sense?
Under rating threshold (hideshow)
Only half of the enemies on-screen are being killed by my bullets- the rest of them, I can only kill by moving my hero into them. Does anybody know a fix?
Under rating threshold (hideshow)
@wowguy102
@Azer1652
Make sure the instance name of your hero ship is different than its class name, and make sure that the code
if(this.hitTest(_root.ship))
instead of putting (_root.ship)), replace "ship" with the instance name (make sure casing is correct, too)
Under rating threshold (hideshow)
when i shoot the enemies, some of them dont even get affected, but when i shoot some of the others, they get shot. Can someone plzhelp? I literally copied the code into all my files, annd nothing got affected. Plz help!!!
Under rating threshold (hideshow)
hey im having a bit of trouble Ive been stuck on page 4 for about 30 mins now and it says that when the hero ship hits the enemy ship it is supposed to explode. I try to do that and it don’t work it does not even give me and error or anything my ship just flys through them. If you could help I would be very gratefull!!!! Thanks in advance!! -wowguy102