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