Games Achievements My Kong Sign In

Comments for Shootorial #3

« Back to Shootorial #3

taelifay

Jan. 12, 2011

Under rating threshold (show) Oh gosh! This was intense. I'm a first time flash user, and, like EVERYONE pretty much, my missiles weren't working. At first they would just stay still... And they ended up staying still even after I finished the coding. I HONESTLY suggest making a missile in paint, or going to this page: http://www.kongregate.com/labs and clicking the link to download the scion toolbox, which has a neat little fire missile. Once I did that, I just followed the steps to set it up, but like this: Insert>New Symbol (missile, missile missile, and check import, just like the shootorial) and then File>Import to Stage and then I clicked the picture I made in paint/the scion image. and then it worked.

+ - !

(1)

Larmus

Jan. 01, 2011

Under rating threshold (show) Kool!

+ - !

(1)

giamps

Sep. 10, 2010

Under rating threshold (show) Fantastic tutorial. Only one error in the top "you set theline width to 6 pixel , the width to 8" may be is height..

+ - !

(4)

NoInfluence

Sep. 07, 2010

Under rating threshold (show) I mostly program in c++, java, etc, worked with directx and such, this is a cool intro to flash

+ - !

(2)

Supersnail200

Sep. 05, 2010

Under rating threshold (show) Uh...Faeh: http://www.kongregate.com/games/Kongregate/shootorial-2

+ - !

(1)

KD40

Aug. 31, 2010

Under rating threshold (show) sooo i added this code and am currently at Page 7 of this shootorial, but the bullets do not seem to work? any ideas? class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { if( Key.isDown(Key.DOWN) ) { _y += velocity; } if( Key.isDown(Key.UP) ) { _y -= velocity; } if( Key.isDown(Key.RIGHT) ) { _x += velocity; } if( Key.isDown(Key.LEFT) ) { _x -= velocity; } if( Key.isDown(Key.SPACE) ) { var missile = _root.attachMovie( "Missile" , "Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth() ); missile._x = _x + 50; missile._y = _y + 2; } } }

+ - !

(2)

MonsterDemond

Jul. 22, 2010

Under rating threshold (show) If the missile doesn't move like its frozen then just go on to the next step it helped me.

+ - !

(1)

Personnel

Jul. 20, 2010

Under rating threshold (show) if the missile isnt showing up, make sure the missile linkage is the same for the ship shooting the missile and the actual missile movie clip. if it isnt moving, make sure the missile class has the same name as the class under the missile movie clip's class

+ - !

(1)

coporalbiscuits

Jul. 18, 2010

Under rating threshold (show) hmmm...the missiles just arent moving. they show up at the right place and when i press space bar but they dont move

+ - !

(1)

jrvboffin

Jul. 08, 2010

Under rating threshold (show) plz anyone i really need help eith this one... my missiles wont appear... all my coding is correct for both the ship and the missile i think it's something to do with when i made the missile symbol. any suggestions?

+ - !

(2)

luke214

Feb. 19, 2010

Under rating threshold (show) nvm i solved it ....

+ - !

(1)

rosslyn568

Feb. 08, 2010

Under rating threshold (show) These tutorials are amazing. They actually teach you. I have already finished my first game. See it at http://www.kongregate.com/games/rosslyn568/planet-defender ---- anyway, great tut. 5/5

+ - !

(1)

kuptis

Jan. 26, 2010

Under rating threshold (show) I am having the same problem as Iditoth.

+ - !

(1)

crh23

Jan. 26, 2010

Under rating threshold (show) save with a capital

+ - !

(1)

TopMaster360

Jan. 18, 2010

Under rating threshold (show) @ Carmage You need the extra )

+ - !

(1)

javiersanj

Sep. 07, 2009

Under rating threshold (show) OMGGGG I'm shooting!!!! yaaay!

+ - !

(1)

maximumcool

Nov. 29, 2008

Under rating threshold (show) Well the joy and torture of programming is that if you make even the slighest mistake your whole program grinds to a halt. Takes a lot of patience to figure out where that one line or even letter is wrong. I spelled "missile" "missle" just once and took me a few minutes to notice the mistake and fix it.

+ - !

(1)

slain4ever

Nov. 23, 2008

Under rating threshold (show) It means you don't have a movieclip with the class as missile.when you convert it to symbol, go advanced otions click import for actionscripting, then make the identifier and class missile and it should work.

+ - !

(1)

bladebane

Nov. 23, 2008

Under rating threshold (show) Look at the top, and make sure the class name is missile. Same happened with me when i set "background" tp be pasted, it pasted as ship.

+ - !

(1)

MeTaLhEaD

Nov. 22, 2008

Under rating threshold (show) I've got this error saying, "The class 'Missile' needs to be defined in a file whose relative path is 'Missile.as'." and I've tried almost everything to fix it, can anybody help me?

+ - !

(1)

jrtibayan

Nov. 19, 2011

Under rating threshold (show) im using Adobe Flash CS5.5 Pro i cant seem to make the missiles appear and disappear since i cant make them appear i tried drag the missile movieclip to the stage and edited its onEnterFrame code particularly the condition when spacebar is pressed just to see if the condition is working i set the speed to 0 if the spacebar is pressed so when i press the spacebar the missile should stop and it did.. so i think the problem is somehow the function that attachmovie and removemovieclip is not firing.. is it because im using a CS5.5?

+ - !

(1)

supermelonsoda

Feb. 12, 2011

Under rating threshold (show) this tutorial does things unnecessarily long. for the file Missile.as, the entire coding in that file, if coded by a person who understands ActionScript 2.0 properly, it would be as short as: class Missile extends MovieClip { function onEnterFrame() { _x=_x+=20 } } not joking. no need for onLoad() or declaring a variable. its that short.

+ - !

(1)

Rich112

Dec. 29, 2010

Under rating threshold (show) this is the most amazing free flash lessons that i could find anywhere thanks 5/5

+ - !

(1)

unknownbyothers

Aug. 12, 2010

Under rating threshold (show) To the people who made their missiles but can't get them to shoot, did you add the symbol directly on the ship animation? I had the same problem because I didn't follow instructions and made a separate .fla for the missile.

+ - !

(1)

sethia003

Aug. 10, 2010

Under rating threshold (show) I think as a game it is okay But as a tutorial is is awesome! (For beginners like me)

+ - !

(1)

bonesaw

Aug. 01, 2010

Under rating threshold (show) Strange, I couldn't fire missiles after adding the shoot limiter. Couldn't figure out what was wrong because my code was the same as the screen shot. After playing with the code a bit I changed &&shootLimiter>8 to &&shootLimiter>=8 and it worked. Anyone know if this is related to the fact that I am using CS5?

+ - !

(1)

Kegso

Jul. 28, 2010

Under rating threshold (show) @jrvboffin dude ever heard of ENTER ?

+ - !

(1)

flipchic97

Jul. 11, 2010

Under rating threshold (show) help! i can't seem to find my missles when i press the spacebar. i test the swf file and when i press the spacebar, nothing appears..help?

+ - !

(1)

jrvboffin

Jul. 08, 2010

Under rating threshold (show) ignore all my previous comments... i was right about the missile. to fix error message "Missile could not be found" draw missile on PAINT and save as a .PNG image. convert to symbol in the same way as in previous shootorials. also call it something simpler than missile "ms1" for example... worked for me. hope it does for you.

+ - !

(1)

jrvboffin

Jul. 08, 2010

Under rating threshold (show) ok i got rid of my error message but the missiles just aren't appearing when i press SPACE. can anyone please help me? My code for the ship is class Ship1 extends MovieClip { var velocity; var shootLimiter; function onLoad() { velocity = 10; shootLimiter = 0; } function onEnterFrame() { shootLimiter += 1; if( Key.isDown(Key.RIGHT) ){ _x = _x + velocity; } if( Key.isDown(Key.LEFT) ){ _x = _x - velocity; } if( Key.isDown(Key.UP) ){ _y = _y - velocity; } if( Key.isDown(Key.DOWN) ){ _y = _y + velocity; } if( Key.isDown(Key.SPACE) && shootLimiter > 8) { shootLimiter = 0; var missile = _root.attachMovie("Missile","Missile" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); missile._x = _x + 50; missile._y = _y + 2; } } } and for the missile is class ms extends MovieClip { var speed; function onLoad() { speed = 20; } function onEnterFrame() { _x += speed; if(_x > 600) { this.removeMovieClip(); } } }

+ - !

(1)

youtuber999

May. 27, 2010

Under rating threshold (show) its not shooting... can someone post the missile code and ship code for me?

+ - !

(1)

fbrh

May. 08, 2010

Under rating threshold (show) to kilador's comment, i had the same problem, but then i created a layer named "missile" and copy, paste a picture of a missile into the "Ship.fla" and even after i deleted the layer and the copy my missiles where appering on the screen when i pressed space as they where meant to do

+ - !

(1)

ROCKINGEMO

Aug. 09, 2010

Under rating threshold (show) im using flash cs5 and the missiles wont fly off can anyone help

+ - !

(1)

hunterpup

Jul. 14, 2015

Under rating threshold (show) i rily don't get it

+ - !

(2)

me_maikey

May. 15, 2011

Under rating threshold (show) (I use adobe CS4, could be different) If your missile wont move, but will spawn, go to game.fla and library. Rightclick misslie and then properties. In there check the identifier and class, you probably need a capital letter or a non-capital letter (opposite of what you got now).

+ - !

(0)

123eddie11

Jan. 15, 2011

Under rating threshold (show) why do my bulletts stand still

+ - !

(0)

oscarzombiekill

Dec. 18, 2010

Under rating threshold (show) my ship wouldnt move for some reason and iput the code exactly right...

+ - !

(0)

Pataway

Dec. 06, 2010

Under rating threshold (show) HELP PLEASE My ship has a rectangular white border so that is appears above the background image and makes it look bad. Sorry to post again but I forget to mention to message me if you have the solution

+ - !

(0)

VMDC

Nov. 06, 2011

Under rating threshold (show) hmm... anyone notices there is no 3) on the second page?

+ - !

(-1)

iGreenPuffle92

Apr. 11, 2010

Under rating threshold (show) I finished my Game! Please Play it Here! http://www.kongregate.com/games/iGreenPuffle92/maxotonic

+ - !

(-1)

XAXA

May. 12, 2011

Under rating threshold (show) My missile appears in front of my ship, but then it won't move. Please help.

+ - !

(-1)

Noah0Nichols2

Apr. 16, 2019

Under rating threshold (show) no enemys aproching no consept super descusting

+ - !

(-2)

DubaiBunnies

Jun. 17, 2017

Under rating threshold (show) Oh nice game!

+ - !

(0)

jrtibayan

Nov. 19, 2011

Under rating threshold (show) nvm i found out what went wrong.. kinda misplaced the code.. should be on the ships class not missile. :)

+ - !

(0)

japh42

Oct. 26, 2011

Under rating threshold (show) Thanks @Derek3803, but I still can't. Have both layers in the same order as on the screen example. I can select it, select the color and line tool but can't draw. It's probably something dumb that I just don't know. Had a step drive me crazy cause it was missing the instruction to select the .fla before trying "Insert>" since it only appears when the .fla is selected.

+ - !

(0)

sheepness

Oct. 07, 2011

Under rating threshold (show) on the line with if( Key.isDown(Key.SPACE) ) it says "This statement is not permitted in a class definition." .. can someone help me here?

+ - !

(0)

japh42

Oct. 03, 2011

Under rating threshold (show) I cannot get this to let me draw the white line. I draw it and as soon as I let go of the mouse button it disappears. Any suggestions? I am doing this with Flash CS3 which I found at the following link, with a 30 day trial period. http://lfiles3.brothersoft.com/dvd_video/flash_tools/ADBEFLPRCS3_WWE.exe

+ - !

(0)

bluefire732

Sep. 24, 2011

Under rating threshold (show) There's more plays on this tutorial than the last one... are people just jumping in in the middle?

+ - !

(0)

supergeno

Sep. 04, 2011

Under rating threshold (show) hey my ship class codes are exactly the same as it shows it should and they should fire from the nose of my ship, but they are firing from the bottom left of the screen! I have looked over it a ton of times but nothing works! what do i do? im using CS5.5

+ - !

(0)

gabrielbressan

Feb. 04, 2011

Under rating threshold (show) Yeah,this is not a game,thats why the descriptions says "This beginning level Flash game making tutorial covers shooting missiles!",why cant some guys read the description...

+ - !

(0)

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