Under rating threshold (hideshow)
the shootlimiter should be defined in the top of the ship class as var shootlimiter; check that that is there. for the class missile you should have a Missile.as saved in the same directory as your fla. If you have that go to your library rightclick on Missile symbol and select preferences make sure the export for actionscript is ticked (in advanced) and that the 'Class: ...' bit matches the 'class ... extends MovieClip' in Missile.as and also matches the '... .as'
Under rating threshold (hideshow)
i dont get is i get my missile but it wont go anywhere its just standing stil and there stands this cant load missile
pleas help
Under rating threshold (hideshow)
Blue turnip - their idea works great, what you did wrong is put the registration to the upper right - if you had it in the center like they said to, you would have no problems.
Under rating threshold (hideshow)
how to make it move(works on Flash 8, CS3, CS4)
make the missile movie clip,
inside it make anouther movieclip.
that other movie clip paste the code:
onClipEvent(load) { function onLoad() { speed = 20; } function onEnterFrame() { _x += speed; } }
TADA it works ! nerd2005 the HERO
Under rating threshold (hideshow)
1ashl, i had that problem temporarily.
Basically i had pasted the function onEnterFrame()
{
_x += speed;
if(_x > 600)
{
this.removeMovieClip();
underneith the function on enter frame _x = _x + 0; or something which caused the missiles not to move but 2 b destryoed if they go past 600.
Hope i helped =S
Under rating threshold (hideshow)
For anyone who wants it:
I have fine tuned the pixels at which the missiles come out of your ship and i have found that missile._x = _x + 85;
missile._y = _y + 22;
works best. So ignore their ideas because their's shoots the missiles ut of the roof which i think is pretty stupid. Mine shoots them out of the nose.
Hope i helped =D
Under rating threshold (hideshow)
I just started picking up flash again after many years off since I last used it (Flash 3). This tutorial (and the subsequent 7 as well) are hands down the best programming tutorial i've EVER seen. In addition, as of March 5, 2009, I got all the tutorials to work exactly as advertised using CS4 so to those who are having troubles, try FOLLOWING THE DIRECTIONS. 5/5. Favorited. Terry S
Under rating threshold (hideshow)
Everyone having problems, just copy/paste this section to replace your problematic section. NOTE: This is not the full Ship Class, just the missle part of it! Good Luck! ----------------------------------- if( Key.isDown(Key.SPACE) ) { var missile = _root.attachMovie( "Missile" , "Missile" + _root.getNextHighestDepth() , _root.getNextHighestDepth() ); missile._x = _x + 50; missile._y = _y + 2; }
Under rating threshold (hideshow)
had some problems for making this on cs4
you have to create the new missile MovieClip, then draw the missile and make it into another MovieClip then add code onClipEvent(load)
{
function onLoad()
{
speed = 20;
}
function onEnterFrame()
{
_x += speed;
}
}
to the new movieclip on the movieclip
Under rating threshold (hideshow)
I absolutlely CANNOT get things to "spawn" as it were. AT ALL. Not just this tutorial either I've been on a few other sites before this. Have followed these instructions to the letter, three times, and still not working. I f***ing give up.
Under rating threshold (hideshow)
Nevermind, worked it out. Just import it as normal, convert to a movie clip, then delete from the stage but not the library.
Under rating threshold (hideshow)
It's not explained in this tutorial, but is there a way to draw the missile in paint and import it into flash, while still using the same code etc. as used in this tutorial. (I'm confused because if I import it, I'm not sure where to put it in order for it to appear when I press space.)
Under rating threshold (hideshow)
I have my missiles firing out of the nose of the ship, but when I move, the missiles still fire from the original location of the ship. What did I do wrong?
Under rating threshold (hideshow)
Ok, I have made the missile and entered the exact action script code, except I get this error: This statement is not permitted in this class definition: if( Key.isDown(Key.SPACE) ) any help?
Under rating threshold (hideshow)
had a problem with missiles not flying.
i changed syntax of "missile" in Ship.as to "Missile", in 3 cases of "blabla Key.SPACE blabla" code. that work now :p
Under rating threshold (hideshow)
i need help! i have all the coding written correctly along with my classes because i know everything is case sensitive. Im not gettin any error messages. But the Missile isnt moving. i looked at previous posts and i changed the speed and what not but its stil not working.
Under rating threshold (hideshow)
i do everything as it says but when i test it says unexpected && encountered i just dont get it can u help me plz??!!!
Under rating threshold (hideshow)
ok i got an error "The class 'Missile' needs to be defined in a file whose relative path is 'Missile.as'." how do i fix that? But my game still works!
Under rating threshold (hideshow)
i think i'm gonna explode out of anger... i'v manage to shoot the missile but it is creating a path instead you can use the ship as a pencil making rows and dashed column..and the background thing is very weird indeed. i can see another background scrolling behind the background without loop. like it is only covering the blank part but it seems like those sky scrappers are eaten by that without loop background...:S
Under rating threshold (hideshow)
Kongregate isn't the only place to look for help with flash you know...
For multiple keys at once go to:
http://www.8bitrocket.com/newsdisplay.aspx?newspage=8141
Under rating threshold (hideshow)
hummm does some one knows how to make use of 3 or more keys at the same time?? for example... when you're trying to move to the top left corner using Up and Left keys, and you try to shoot, bug happens... How to fix that??
Hope I made myself understood...
Under rating threshold (hideshow)
@PewPewPewPewPew: The insert button is there, but you have to be watching the Ship.fla.
Is there someone who can telle if there are some settings in the program to change?When i am defining where the missiles should come from, it seems like the y and x axes are being mixed up
Under rating threshold (hideshow)
people here REALY help... (after about 6 hours of jumping through chat rooms looking for somebody that knew what to do, i had to delete CS4 and download/install CS3......)