Under rating threshold (hideshow)
Everyone: If using CS5 and your missiles aren't appearing when you hit SPACE, open your library, right click your Missile, select Properties and then turn on 'Export in frame 1'. Please + this to keep this on top.
Under rating threshold (hideshow)
i really dont get why people are insulting this thing. it is there best tutorial out there. mabye your game only sucks because you suck at flash. i have learned so much for this tutorial. and if your having problems. Figure it out yourself. the code here is correct. youve obvouosly done somthing wrong.
thanx for the tutorial :)
Under rating threshold (hideshow)
If you have an error it is most likely because you have misspelt a word or forgotten a ";". Keep saving your work before you test and make sure it is all in the same folder and correctly named!
Under rating threshold (hideshow)
-roughpath, make sure you have saved your scripts since editting them.
-scaryfighter, you may have the _x value wrong in the this.removeMovieClip() loop.
-juha686, might sound odd, but in the "missile._x = _x + 50" line, is your 50 a variable that changes during runtime rather than being a constant number?
Olimar72, sounds like you have your Key.isDown(Key.SPACE) outside of the class. You have to make sure it is INSIDE the first and last curly brackets that hold the classes contents.
Under rating threshold (hideshow)
@aquspal it not a game at all so if u dont like this cause its not a game look at the front page instead of coming here and complaining its not a game when it has the word TUTORIAL in it......unless you dont know what that is...in wich case goto a doctor/therapist
Under rating threshold (hideshow)
Im using cs5 and am getting confused when they draw the missile. How do I get to the properties of the line I draw? That question may sound stupid to alot of you but ive never done this before and I just turned 13 a week ago. Thanks.
Under rating threshold (hideshow)
"There is no property with the name 'speed'." I get this error message when I put the "speed" variable in the onload function. I am using CS5
Under rating threshold (hideshow)
If your bullets fire but dont move make sure you saved your script in the same folder and you saved it before you test and its the EXACT same as the example
Under rating threshold (hideshow)
for some reason when I press space the missile doesn't appear even close to the ship, it just appears at a random postion. I tried messing with the x/y coordinates, but that didn't affect it at all. help?
Under rating threshold (hideshow)
Make sure you guys spell "Missile" right. I spelled it with a missing "i" and was gettting an "Missile 'class' has to be relevant to another object named 'Missile'"
Under rating threshold (hideshow)
Ok, I have all the code right, and there are no compiler errors, but when I press space, nothing happens, any help on this?
Under rating threshold (hideshow)
Everything works great but the missiles dont always come out of the nose, when i first fire they do but if u move upward, the missiles come between you and the starting point.
Under rating threshold (hideshow)
I have a question, how do you script so the ship doesn't leave the boundaries? I know a tiny bit of C++ so i was thinking some kind of if loop like if(_x=0) {velocity == 0}. Im a little rusty on the syntax but I was wondering if anybody new the actionscript for something like that.
Under rating threshold (hideshow)
Guys... don't attack the tutorial... it's a brilliant resource and saves many hours work learning the basics of flash, oh and @Nathaniel100 yes it does, because that program uses as2.0... kthxbai
Under rating threshold (hideshow)
SHEEPNESS probably you already figured out, nut you must put "if" statements inside "on" events, such as "onEnterFrame", otherwise it won't work... bothered me for almost 15 min as well...
Under rating threshold (hideshow)
I'm only having one problem, I got the missile shooting from the right place but they don't move right, other that this tutorial is brilliant, of course it's not the tutorials fault it's mine.
Under rating threshold (hideshow)
When my missiles didn't go and just stayed in place, I must've wasted 30 minutes drawing different shapes out of missiles.
Under rating threshold (hideshow)
Actionscript 3 is 900 times harder to make games with because there is not as much functionality with movie clips, that is why it is in actionscript 2
Under rating threshold (hideshow)
I keep getting this error. D:\Documents and Settings\Owner\My Documents\Flash\Tutorials\Missle.as, Line 1 The class 'Missile' needs to be defined in a file whose relative path is 'Missile.as'.
I've copied and pasted the code directly from the tutorial. It should be working. I'm only on step 4 or 5 and I'm getting this error. Pressing Space will not shoot missles at all. Help?
Under rating threshold (hideshow)
@powerownage just continue with the tutorial, your issue is addressed in a later page. @Jonthebloxer go to the library, double click the 'Ship' icon, delete the sprite and draw/insert whatever you want instead.
Under rating threshold (hideshow)
**Error** Symbol=Missile, layer=Layer 1, frame=1, Line 1: The class or interface 'Missile' could not be loaded.
Help!!
Under rating threshold (hideshow)
This code looks complex, but its not. Really, its not. Hopefully i am not the only person who laughed a little bit at that part on page 5.
Under rating threshold (hideshow)
Simple syntax mistakes like an extra } or a mis-spelt command can be found if you go to "tools" then "Check syntax". Great tutorial.
Under rating threshold (hideshow)
I have two problems.
1. The bullets spawn on the roof of my ship.
2. I can't move in the left-downwards direction while firing.
If anyone knows what's wrong, please help.
Thanks.
Under rating threshold (hideshow)
Ah, solved it! Could possibly be the same problem as other people have. Looked like:
if( Key.isDown(Key.SPACE && shootlimit > 8) )
Should look like:
if( Key.isDown(Key.SPACE) && shootlimit > 8 )
Under rating threshold (hideshow)
When I'm doing the shootLimiter is messes things up. I can no longer shoot by pressing space. But the ship will fire correctly if I press mouse button (?)
I did som testing and it works without "&& shootLimit > 8" in the if-section of the space button.
Under rating threshold (hideshow)
If you have the shootLimiter set up like this, doesn't it take up a good deal of processor speed by continuously counting? Is there something better that can add a timer while you hold down the space bar before the next fire can be shot or something? I am sure I have played some games that have tried this and you can just hit space bar over and over and it shoots faster then holding, but anyone know how to do this a better way?
Under rating threshold (hideshow)
Ins0mniuS: I THINK I had the same problem as you. For me (CS5) Each different tab (ex. Ship, Background, Missile) is saved at different times. So if it says "Ship*" or "Background*" it means you haven't saved that tab. Just save each one individually and HOPEFULLY.... Voila!
Under rating threshold (hideshow)
Looks great, but seem to be for AS2. Isn't it ? (_root.attachMovie, this.removeMovieClip etc...).
How about doing an AS3 tuto ?
Under rating threshold (hideshow)
Dude sure declaring variables arnt need but its great programing practice not every coding language is like AS
so you should get the practice of doing it now. and another thing there are different ways of doing things so u should hold ur opinions to ur self OR go make ur own tutorial instead getting mad cause they didnt do it your way
baka
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.