Under rating threshold (hideshow)
okay 1st thing i see here is something that isn't really that handy to work with becuase it depends on the frame rate, wouldn't it be better to use an interval, in a lot of cases a named interval(meaning that the interval is named to a specific spot)? you use it like this(this way you can also name intervals with a for loop, or something along the lines of repetition), but i'll just use a for loop to make it easier to understand=>
for(var i:Number = 0; i with the amount of time you want the interval to re-execute the function in,
you can clear an interval with
clearInterval(address of the interval)
Under rating threshold (hideshow)
my previous comment was wrong and in order to get rid of the error make sure that your 2 names are exactly the same my two names were different from background to backround
Under rating threshold (hideshow)
I had error in line 1 but then i realized that my mistake was that I had saved the .as file before I saved the .fla file. and if your ship doesn't move make sure you save both files. It worked for me
Under rating threshold (hideshow)
Read, Nabster, it says in the tutorial that ships class extends Movieclip means that it is a movie clip with extra functionality.
Under rating threshold (hideshow)
hmmm... i was reading a comment on the first shootorial saying that it was just holding your hand right the way through it. At first i disagreed with it bu now i see what he means... what the hell does class ship extends movieclip mean?
this doesnt help me to create another game.
Under rating threshold (hideshow)
If anyone's having problems with their ship not moving when they publish a test .swf file. Make sure you save both the .fla and the .as before testing and make sure they are in the same folder.
?? how do u do that
Under rating threshold (hideshow)
If anyone's having problems with their ship not moving when they publish a test .swf file. Make sure you save both the .fla and the .as before testing and make sure they are in the same folder.
Under rating threshold (hideshow)
4 gods sake! at number 8 its impossible to do,i even have a higher version,i cheacked it and its sayin there is an error with the brackets on line 2 and line 16!! and the brackets are the only things on that line,here is wut it look like,tell me wut wrong and srry,bout to double post,lol i got a habit of that
Under rating threshold (hideshow)
nvm it show u wut to put later on,oh and tummyfish albinostorm,it does matter if u have a higher version then this was made for,it makes it easier,no diffrence,and yes the shootorials were made before CS4,CS4 is still very new
Under rating threshold (hideshow)
i just think its stupid how it says copy this code into the empty file and it says
class Ship extends MovieClip
{
}
its just stupid,i mean wtf we just copy 3 blank spaces?
Under rating threshold (hideshow)
i get an error message sayin the name of this class conflicts with another class that was loaded, anyone know any fixes? iv got cs4 if that makes any difference
Under rating threshold (hideshow)
i keep getting the error "The class 'Ship' needs to be defined in a file whose relative path is 'Ship.as'." im using flash cs4
Under rating threshold (hideshow)
Always get this error: ActionScript 2.0 class scripts may only define class or interface constructs.
The Ship.as is in the directory where my .fla is...but no result,damn help me i really wanna do this
Under rating threshold (hideshow)
ok, i have tried everything for this. my current problem is that my "ship" wont move when i test the file, and i have saved all the files in the same place, corrected all syntax + class errors, and even had most of the errors that other people have had on the previous 35 pages and corrected them. please tell me if cs4 does not work or windows xp.
Under rating threshold (hideshow)
Wow, This is freakin awesome! I have been trying to find a "for a non-experienced (at all)" kind of thing, and here it is! I had a few difficulties but i got this thing running! XD
Under rating threshold (hideshow)
i just got the flash cs4 and am up to page 9 on this and have the exact code, but a different ship image, and when I've tried to test the movie the ship won't react to either the constant velocity or right arrow key. can anyone help?
Under rating threshold (hideshow)
CodeGuy, did you use Key.W? That wouldn't work. You need to look up the ASCII code for the letter you're using and use that, so it would be if(Key.isDown(88)).
Under rating threshold (hideshow)
Key.isDown(Key.RIGHT) works fine for detecting the right arrow. However, I've tried using Key.isDown to detect letters (for WASD control) and that didn't work. I even looked up the key number and put that where Key.RIGHT was, but it didn't work. How do I detect keypresses for the letters?
Under rating threshold (hideshow)
leave me a shout if you know the answer. All of my tools around the actionscript interface are grayed out. I cannot test my project, adjust FPS or attributes, Someone please help me!