Comments for Shootorial #5

avatar for son_o_lilith
son_o_lilith

May. 22, 2012

Under rating threshold (show) Man I'm so Stupid!! I typed var enemies instead of var enemy. LOL my bad.

+ - !

(0)

avatar for son_o_lilith
son_o_lilith

May. 22, 2012

Under rating threshold (show) Same with Markonan here, the array puts me in error. And I don't think the instance name '_root.ship' is the problem. Actually, I found an error window right beside the timeline window, "There is no property with the name 'enemy'" it says. I have little idea what it means, can somebody help?

+ - !

(0)

avatar for Oreon_Necris
Oreon_Necris

Apr. 26, 2012

Under rating threshold (show) I feel like everytime i change something in my ship code everything stops working :( the ship doesn't move or shoot anymore and no enemies spawn or shoot or anything! I've been pawing over the code all day and nothing seems to be wrong with it... can someone help? pm me or something i beg of you! :p

+ - !

(0)

avatar for den1983
den1983

Apr. 25, 2012

Under rating threshold (show) i have this problem.. after i have added the collision between missile and enemy ship th rate of fire of hero ship change.. when the test begin it's only one missile but some enemy after it's 2 3 4.. any solution?

+ - !

(1)

avatar for Markonan
Markonan

Apr. 12, 2012

Under rating threshold (show) I get an error when I put the array into my code. When "enemies = [];" is put into my code the enemies stop spawning, bullets won't fire, and the background doesn't move like it's supposed to. I altered the gameplay slightly (ships coming from random locations, top to bottom, left to right, etc., bullets shooting all directions, and background moving with the ship instead of only horizontally) but no changes that I can think of that would alter it enough to do this. I tried it without the "enemies = [];" (and the "var enemies;" still created) and I don't have any problems whatsoever. I also tried it by doing "enemies = new Array();" but got the same issue. Any ideas?

+ - !

(1)

avatar for WindDragonLord
WindDragonLord

Mar. 29, 2012

Under rating threshold (show) @EphY You have to right-click open in new tab.

+ - !

(0)

avatar for EphY
EphY

Mar. 17, 2012

Under rating threshold (show) Neither Firefox nor Internet Explorer is allowing me to download the source files. Could somebody PM me a direct link?

+ - !

(2)

avatar for Schreib
Schreib

Mar. 10, 2012

Under rating threshold (show) It's a pretty good tutorial. I this it's the best actionscript tutorial I've ever seen personally, so thanks!

+ - !

(1)

avatar for Fishdawg
Fishdawg

Mar. 08, 2012

Under rating threshold (show) This tutorial is lacking in its explanation of a for... in loop. How exactly does it work? I see it's in the onEnterFrame method so for each frame does it check the entire array?

+ - !

(2)

avatar for Gargoyler
Gargoyler

Mar. 06, 2012

Under rating threshold (show) Ok sorry, I'm not totally incompetent but I need more help. So I figured out how to change the instance name. It is now the same as the ship name. All seems to be in order yet still my ship will not move, shoot, and enemy ships will not enter the screen. No error's are being reported in the log below the stage. And my coding is set exactly as is shown in the tutorial. I've come across some set backs while doing this, but this is by far the toughest one. I can't figure this out.

+ - !

(0)

avatar for Gargoyler
Gargoyler

Mar. 06, 2012

Under rating threshold (show) Ok I figured out my problem. I misspelled my instance name, but I can't find out how to edit it. I'm using flash cs5. So it might be a bit different layout wise from cs3. When I click on my ship and go to properties, under the name it says "instance of: my misspelled ship name. I cannot click on the name to edit it. It seems like it's locked. Anyone know?

+ - !

(0)

avatar for Gargoyler
Gargoyler

Mar. 06, 2012

Under rating threshold (show) So I did the first step of this tutorial. I gave my ship an instance name. (Same name as my ship). And since then everything has stopped working. When I run my test my ship will not move, shoot, and the enemy ships will not run. Everything was running perfectly before. And now when I select my my ship and go to properties, there isn't an option to change the instance name anymore?? I want to remove it to see if everything will run fine again. For good measure i continued to step 5 of the collision tutorial and it tells me to run the test and everything should working up to this point but it still doesn't work. Any ideas? Thanks

+ - !

(0)

avatar for fortymiletown
fortymiletown

Mar. 05, 2012

Under rating threshold (show) I made the instance name different from the class name of the ship, but I keep getting the error message "this statement is not permitted in a class definition"

+ - !

(0)

avatar for hannesdelbeke
hannesdelbeke

Feb. 20, 2012

Under rating threshold (show) ProTip: press v to get the selection tool

+ - !

(2)

avatar for Jonasinjo
Jonasinjo

Jan. 07, 2012

Under rating threshold (show) 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.

+ - !

(0)

avatar for CaptianKirk
CaptianKirk

Jan. 04, 2012

Under rating threshold (show) The explosion MovieClip lives in "sh_05.fla"

+ - !

(0)

avatar for garduze
garduze

Jan. 02, 2012

Under rating threshold (show) Hi. I am having a problem. There should be single enemy ships coming out each time, right? But with mine, two enemy ships come out together every time. What should I do? I don't see any part of the codes here that tells how many enemy ships should come out for each instance. Thanks..

+ - !

(0)

avatar for sleepymii
sleepymii

Dec. 22, 2011

Under rating threshold (show) .....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

+ - !

(1)

avatar for juggernaut25
juggernaut25

Dec. 22, 2011

Under rating threshold (show) nevermind

+ - !

(-1)

avatar for juggernaut25
juggernaut25

Dec. 22, 2011

Under rating threshold (show) I cannot download the explosion

+ - !

(0)

avatar for JuhaS2
JuhaS2

Nov. 24, 2011

Under rating threshold (show) I have a 2 problems, both my explosions and enemy missiles appear to random places and i can't find any reason for this. All help is welcome

+ - !

(0)

avatar for AaronS100
AaronS100

Nov. 08, 2011

Under rating threshold (show) Help i added all of the source files and even then the bad guys come out super fast!

+ - !

(-1)

avatar for Dulran
Dulran

Nov. 05, 2011

Under rating threshold (show) @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.

+ - !

(0)

avatar for woofer
woofer

Oct. 27, 2011

Under rating threshold (show) 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.

+ - !

(-2)

avatar for akiko01
akiko01

Oct. 26, 2011

Under rating threshold (show) For any who might folow my metods and experience trouble getting the EnemyMissile and your Missile to make contact, DOUBLE CHECK YOUR SCRIPT, as i said previously, for those who typed "Ship" (this is case sensitive here) as the Instance Name, then double check all of your Script and make sure you that when you copied the Functions that you changed the first letter of the _root.ship to _root.Ship once you accomplish this you should be able to destroy the enemy ships. Final note, just make sure that the _root.(whatever name is here) is the same throughout all the script.

+ - !

(1)

avatar for akiko01
akiko01

Oct. 26, 2011

Under rating threshold (show) For those of you like me who messed up at the beginning and accidently spelled "SHIP" in lowercase, exp. "ship", instead of the tutorial suggested, "Ship", then when you input the instance name "ship" your movie clip WILL NOT WORK, to fix this put the first letter of the Instance Name in capitals and also change the function by one letter, exp. if(this.hitTest(_root.Ship)) the last part of the function is now a capital "Ship" to line up with the Instance Name.

+ - !

(0)

avatar for akiko01
akiko01

Oct. 26, 2011

Under rating threshold (show) 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.

+ - !

(0)

avatar for sheepness
sheepness

Oct. 23, 2011

Under rating threshold (show) @mailbox : maybe you should make enemy ship removed from the array on the explode function

+ - !

(0)

avatar for mailbox061583
mailbox061583

Oct. 19, 2011

Under rating threshold (show) 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?

+ - !

(2)

avatar for zeth415
zeth415

Oct. 15, 2011

Under rating threshold (show) solved... CAPS problem u_u

+ - !

(0)

avatar for zeth415
zeth415

Oct. 15, 2011

Under rating threshold (show) I'm using flash CS3 with action script 2

+ - !

(0)

avatar for zeth415
zeth415

Oct. 15, 2011

Under rating threshold (show) 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

+ - !

(0)

avatar for dkill2324
dkill2324

Oct. 12, 2011

Under rating threshold (show)

+ - !

(-5)

avatar for ZaGunny
ZaGunny

Oct. 12, 2011

Under rating threshold (show) 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"

+ - !

(2)

avatar for thejabberw0cky
thejabberw0cky

Oct. 06, 2011

Under rating threshold (show) This tutorial series is so valuable!

+ - !

(1)

avatar for Rotherian
Rotherian

Oct. 02, 2011

Under rating threshold (show) the _root is throwing the following error: 1120: Access of undefined property _root. And I have the object in question on the stage, so any ideas?

+ - !

(0)

avatar for BoredomDeleted
BoredomDeleted

Sep. 24, 2011

Under rating threshold (show) If you're having trouble with the link, right click on it and open in new window.

+ - !

(2)

avatar for bluefire732
bluefire732

Sep. 24, 2011

Under rating threshold (show) When I play what I've got now, I feel invincible! :P

+ - !

(1)

avatar for Undone
Undone

Sep. 23, 2011

Under rating threshold (show)

+ - !

(-3)

avatar for PlayerPimp
PlayerPimp

Sep. 22, 2011

Under rating threshold (show) I love how it says or better yet draw your own animation with no instructions whatsoever on how to do it

+ - !

(1)

avatar for TheHugLife
TheHugLife

Aug. 25, 2011

Under rating threshold (show) 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!

+ - !

(2)

avatar for sol_rox
sol_rox

Aug. 19, 2011

Under rating threshold (show) nvm i got it

+ - !

(-2)

avatar for sol_rox
sol_rox

Aug. 19, 2011

Under rating threshold (show) can sum 1 tell me where the explosion is i dwn loaded the file but i cant find it

+ - !

(-2)

avatar for SlayerOfPersians
SlayerOfPersians

Aug. 14, 2011

Under rating threshold (show) 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!

+ - !

(5)

avatar for Gloogloos
Gloogloos

Aug. 13, 2011

Under rating threshold (show) 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

+ - !

(0)

avatar for Gloogloos
Gloogloos

Aug. 13, 2011

Under rating threshold (show) nvm got it, there was a layer that i missed and i deleted it and its all good now, thank god

+ - !

(0)

avatar for Gloogloos
Gloogloos

Aug. 13, 2011

Under rating threshold (show) 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

+ - !

(0)

avatar for Qikker
Qikker

Aug. 12, 2011

Under rating threshold (show) 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(); }

+ - !

(2)

avatar for yngwiedmb
yngwiedmb

Aug. 10, 2011

Under rating threshold (show) @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

+ - !

(0)

avatar for jumpking55
jumpking55

Aug. 10, 2011

Under rating threshold (show) what I dont get is where it says, "_root.ship.enemies", I dont get where the ship part comes from in that. the ship has nothing to do with the dollision, only the missile and the enemies. where does the ship come from?

+ - !

(0)

  • add a comment