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)
My Goodness! Ok after the 100's of comments i read about missiles staying still, i was about to quit, but then, i deleted everything and started from the begining of #3 and it works!
Under rating threshold (hideshow)
Hey everyone! If anyone here wants to convert AS2 code to AS3 I set up a quick guide on how to do it. This uses old code that you wont want in newer projects but the site I set up will explain how to use it! http://codingflashfast.webs.com/
This should help everyone who needs this in AS3.
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)
It says me that the statement : if ( Key.isDown(Key.SPACE) ), is not permitted in a class definition. I'm using CS5.5
Under rating threshold (hideshow)
I'm stuck on page 9. For some reason, everything works fine when I exclude "missile._x =_x + 50; missile._y = _y + 2;", but when I include that portion of the code, my character won't move and my missiles won't fire.
Under rating threshold (hideshow)
I'm having issues when creating the missiles. They're appearing fine, but when they appear from the ship, they still appear at the top left corner as well. Can anybody help?
Under rating threshold (hideshow)
I'm having a really hard time creating the missile in CS5.5, The sizes seem really different and everything is different than the tutorial. Can anyone help me please?
Under rating threshold (hideshow)
every slide i read, there will always be a question in my mind(missile shooting so fast, missile coming from the body of spaceship instead of cockpit). then after several slides, the question will be answered. great guide.
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)
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)
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)
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)
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)
I find a slightly better effect out of the missiles by having an acceleration, I set speed to 0 instead of 10, then did this when moving the missiles:
_x += speed;
speed += 1; // try changing the speed that speed increases for a different effect.
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)
umm my ship class looks exactly like it shows but it fires them like crazy if I move and hold space so its dragging missiles AND they are appearing at the bottom left! what do i do?
Under rating threshold (hideshow)
I cannot get the missile to spawn. If I change the linkage identifier and instance name to "ship" I can fire a ship out of my ship, but when it is set to "missile", there is no missile. The properties for the missile are set to 'Export in Frame 1' and if I add a missile manually to the scene, it shows up when I test the movie, and it moves across the screen properly. In the library object the missile shows up as a movie. I am not getting any syntax errors on any .as programs. Any ideas?
Under rating threshold (hideshow)
okay, i have my missile working relatively and i am now trying to make things constantly fly out of the back of my ship. Nyanship is my ship's symbol name. The Mexicanflag class is the same as the missile except speed = -20;
if( symbol NYANShip is on stage )
{
var Mexicanflag = _root.attachMovie( "Mexicanflag" , "Mexicanflag" + _root.getNextHighestDepth() , _root.getNextHighestDepth() );
Mexicanflag._x = _x - 100;
Mexicanflag._y = _y - 2;
}
Would this work?