Games Achievements My Kong Sign In

Comments for Shootorial #5

« Back to Shootorial #5

hadiclank210

May. 15, 2011

Under rating threshold (show) Kongregate rocks...and the website.

+ - !

(2)

necrogaz

May. 14, 2011

Under rating threshold (show) Do someone knows how to change a movie clip selection square to something else? i mean, i have blank spaces in my enemy ship and i want the "hero ship" go trough that blank spaces without taking damage, or without colliding, its there a way? (srry my bad english)

+ - !

(1)

saphire_the_fox

Apr. 14, 2011

Under rating threshold (show) If you're using CS4, the correct "properties" area where you input your new Instance Name to be "ship" can be found in the upper right panel. Just select the "Properties" tab instead of the "Library" tab. ((Your workspace may look different. I'm using the -Classic- Workspace. To change workspaces, go to the top of the program and click "Window"-> "Workspace" -> "Classic".))

+ - !

(1)

gavin_rox_3

Apr. 06, 2011

Under rating threshold (show) Can somebody help, i got everything, but i dont know how to make the explosions disappear :o

+ - !

(1)

joeharner

Mar. 10, 2011

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

+ - !

(1)

Ins0mniuS

Feb. 23, 2011

Under rating threshold (show) For some odd reason after completing some of these steps, the Enemy Ships spawn extremely fast, I have no idea why though! :<

+ - !

(1)

DFL0505

Feb. 08, 2011

Under rating threshold (show) my bullets arent destroying the enemy ships! anyone have a solution pm me!!!

+ - !

(2)

calvinjliao

Feb. 08, 2011

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

+ - !

(1)

ploopy9871

Jan. 31, 2011

Under rating threshold (show) LOL On the Ship class put the Shootlimiter to equal 10.It looks like your firing a laser! LOL

+ - !

(2)

Pixiepop

Dec. 24, 2010

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

+ - !

(1)

daemon1234

Dec. 23, 2010

Under rating threshold (show) hi all, the hit test isnt working even though i instanced it and copy and pasted the code to be sure

+ - !

(1)

demyx3

Dec. 15, 2010

Under rating threshold (show) the files i downloaded wont work on my adobe flash. why?

+ - !

(-1)

moorsy

Dec. 09, 2010

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

+ - !

(2)

Daxter697

Dec. 03, 2010

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

+ - !

(2)

trebusha

Dec. 01, 2010

Under rating threshold (show) my properties page doesn't have an option to change the instance name please help

+ - !

(1)

notmyid

Nov. 13, 2010

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

+ - !

(1)

Fultoa

Nov. 04, 2010

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

+ - !

(1)

hastingsfc12

Oct. 28, 2010

Under rating threshold (show) hai im making my own game 100% by me so how do u make ur own explosion thingy? would help lots thanks

+ - !

(1)

Havv

Oct. 10, 2010

Under rating threshold (show) War Hammer69: You need a for loop. for (i=0, i< someArray.Length, i++){ /* detect collision code */ }

+ - !

(1)

Personnel

Oct. 08, 2010

Under rating threshold (show) mustard, if your explode() function wont work, make sure to create that function in the enemy ship's class. go outside the onFrameEnter block and type function explode() and braces with code in it. this.removeMovieClip() only deletes it. AND STOP ADVERTISING THE EFFING SITE! I DONT GIVE A FLYING *is cut off because of profanity*

+ - !

(1)

TheTinger

Aug. 27, 2010

Under rating threshold (show) hey, i am stuck on pg 5, it says to right click on the clip in the library and choose "linkage..." nut it isnt there....

+ - !

(2)

marx4400

Jun. 06, 2010

Under rating threshold (show) when i add the instance name "ship" nothing works anymore except my background :\

+ - !

(1)

darkseraph77

Apr. 06, 2010

Under rating threshold (show) I'm on page 2 and when i went to select the ship, i got a dashed-grey line not a blue one. I'm using cs4 by the way. also I don't see the info bar that is shown at the bottom of the shootorial page.

+ - !

(1)

Bogardan

Feb. 26, 2010

Under rating threshold (show) nevermind figured it out, you cant put capital letters in an instance name apparently.

+ - !

(1)

kennybrooks

Feb. 07, 2009

Under rating threshold (show) Here is the link to download the source files if you the link does not work: http://chat.kongregate.com/gamez/0002/6223/live/assets/source_files.zip

+ - !

(1)

Mareck

Feb. 03, 2009

Under rating threshold (show) i found the solution at this problem! you must open the page in another windows with a right-click on the link, then you must copy the url of the new page with Ctrl-C, after that you could download the source-file (the new page remain's open only for 1 sec. ca. so hurry up)

+ - !

(1)

johnnei

Jan. 12, 2009

Under rating threshold (show) BVKM open the download link in new tab/window otherwise it wont work (i had it too) xD

+ - !

(1)

beholderalv

Jan. 06, 2009

Under rating threshold (show) @JoeStrout: An array doesn't contain objects itself, but instead it keeps a pointer to where the objects are. So when you destroy the object (at the line: "this.removeMovieClip();"), the pointer is also destroyed). So no, it doesn't get bigger.

+ - !

(1)

PewPewPewPewPew

Jan. 05, 2009

Under rating threshold (show) to stop the hero ship leaving the screen modify your movement logic to say "if(Key.isDown(Key.RIGHT) && _x > 570) { _x += velocity; }" i might have got < and > mixed up, if it doesnt work switch them around

+ - !

(1)

M3G4TR0N

Nov. 25, 2008

Under rating threshold (show) ok, I've fixed this, but just posting so others can maybe be helped by this. For one, i found that if I had the instance name of the ship the same as the class name, the ship was no longer recognised by the class and didn't move anymore. To fix this, I just renamed the ship instance, and it worked fine. Second, the enemy ships kept blowing up as soon as they spawned - this was a result of my being careless and putting a ";" after the if statement for the hit test. hope this helps somebody.

+ - !

(1)

Gibsonites

Nov. 23, 2008

Under rating threshold (show) Whoops, made a mistake. Change if(_x300) to if(y>300)

+ - !

(1)

Gibsonites

Nov. 23, 2008

Under rating threshold (show) Parrotman: Your codes didn't entirely work for me, I found my ship getting stuck to the right side of the screen if I went anywhere past the middle of the screen. So I messed around with my coding, and this seems to work: if(_x>600) { _x=600; } if(_x300) { _y=300; } if(_y<0) { _y=0; }

+ - !

(1)

virtualcrush

Nov. 06, 2008

Under rating threshold (show) When you finish step 10, should you be able to do a test movie and explode the enemy ships with your own missiles? Everything runs fine, but the enemies are not exploding when I hit them with a missile. They only explode when my ship touches them.

+ - !

(0)

Foreign

Dec. 31, 2010

Under rating threshold (show) kongregate is awesome XD

+ - !

(2)

Brotha_C

Aug. 28, 2010

Under rating threshold (show) Stop downrating poor 12sea21. Jeez lol.

+ - !

(2)

headlessgargoyle

Jun. 21, 2010

Under rating threshold (show) if you're using flash cs4, you have to define the function before it's use in the onEnterFrame() function. as such put it by your variables, easy fix just letting you all know

+ - !

(2)

SilentDemon

Apr. 27, 2010

Under rating threshold (show) Ahh, I can't get the stupid files so I can't finish my game. =( Fix the link please?

+ - !

(2)

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)

narfnin

Oct. 28, 2010

Under rating threshold (show) FFFFF---- When I add the array and missile stuff, BILLIONS of ships appear! AND THEY ARE INVINCIBLE!!! WHAT DO?!

+ - !

(1)

Sackzement

Sep. 17, 2010

Under rating threshold (show) I added a function in the EnemyShip class, which removes the EnemyShip from the enemies array in the Ship class, when it is destroyed or moves out of scope. This can make a difference in performance if you use big arrays. Here' the function: function removeFromArray() { for(var i in _root.ship.enemies) { if(this == _root.ship.enemies[i]) { _root.ship.enemies.splice(i,1); } } } Add it somewhere in the EnemyShip class and execute it when the ship is destroyed or moves left out of the stage.The splice(a,1) function removes 1 object on the a-th position from an array. Since I'm new to Flash a pro should take a lot at this and correct me if I'm wrong.

+ - !

(1)

godkev

Aug. 07, 2010

Under rating threshold (show) when I type the "enemies.push(enemy)" part and then test my movie, it says : There is no property with the name 'enemy'. enemies.push(enemy);

+ - !

(1)

Fuddy30

Jul. 30, 2010

Under rating threshold (show) My ship won't shoot any enemies, my missiles just goes right though them :P Could it be a missing instance name for the Enemies or my Missiles?

+ - !

(1)

xovoxx

Jul. 20, 2010

Under rating threshold (show) My functions won't work. It seems to be related to what headlessgargoyle said, that I need to define my function. However I put my function next to my variables, it won't work. Can annyone help me with this? (By the way, yes I'm using cs4)

+ - !

(1)

VampZer0

Jul. 08, 2010

Under rating threshold (show) So I feel like I have to be missing something incredibly monumental, because my missiles seem to pass through every other enemy. I'm not sure what I've done wrong but the name of my incidences is correct I believe. Can anyone help me? This has gotten rather frustrating...

+ - !

(1)

ShadoLaura

Oct. 27, 2008

Under rating threshold (show) 1st I like these shootorials 5/5!

+ - !

(0)

DowntownVL

Sep. 26, 2010

Under rating threshold (show) For MTB666: Give the ship another instance name like "shipp", and use that name in the AS also. Worked for me.

+ - !

(1)

Fantasticalism

Sep. 06, 2010

Under rating threshold (show) on every shootorial, almost all of the comments are "OMG HELP ME I CAN"T FIGURE THIS OUT!" or something. I have only had 1 trouble, and that was figuring out how to make an explosion animation, but i figured it out, so you people need to stop complaining and figure it out yourself.

+ - !

(0)

Lucidius

Aug. 16, 2010

Under rating threshold (show) In step 10 I got boned for a couple hours because I didnt see that there is a space after 'in', before '_root.ship.enemies' in line 14. So I researched for hours learning about basic for statements and advanced for statements, which this is. So thats the plus side. On the negative side, I'm a total moron lol :P

+ - !

(0)

Lucodonosor

Jul. 31, 2011

Under rating threshold (show) This really needs ba... oh wait

+ - !

(0)

chilller6

Jul. 01, 2011

Under rating threshold (show) these tutorials are good if u like challenges but u could also use Stencyl which uses no coding and is easy and fun

+ - !

(0)

  • add a comment
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms Privacy Code of Conduct
© 2024 Kongregate