Under rating threshold (hideshow)
I'm stuck on part 9, can someone help? I have CS3 and I wrote the code like it said and saved the fla file with de .as at the same directory The ship is supposed to fly across the screen from left too right but it didn't when I Test Movie. Any tips?
Under rating threshold (hideshow)
I know how to program in Java, so I know these steps and the reasons why they do it. If you have any questions at all, I may be able to help you.
Under rating threshold (hideshow)
Here's my game I made with Neil Shah and I added a little spinoff: http://www.kongregate.com/games/PARSco/space-shooter
Under rating threshold (hideshow)
Could someone who actually got this to work please tell us the WHOLE code, with all the indents and spaces and other crap that flash needs right on the spot or you won't get jack.
Under rating threshold (hideshow)
I am currently stuck on page nine when i test my movie it says in the COMPILER ERRORS section that my ships class or interface could not be loaded HELP! i am usig CS5
Under rating threshold (hideshow)
LOL i notice if you pressed up or down till it goes out of the screen it'll take the exact same time to come back into the screen. xD
Under rating threshold (hideshow)
I was stuck on Step 9 because my ship didn't move. I tried everything and got so frustrated I closed out the Flash and started over. I found out that as I was saving my second Ship.as, my first .as file was named something like Script-1.as (the default) and that I forgot to change the name. Moral of the story: always be 100% certain you are following the tutorial exactly, don't rush through things, and read steps even if they tell you that you can skip over them (for future reference).
Under rating threshold (hideshow)
Q: what defines that the up key well make it go up instead the down since both them are working on the y axis? Pls someone send me a ms in response
Under rating threshold (hideshow)
if these codes don't work for any of you (because you don't have the right flash version) use these, these should work fine:
onClipEvent(load) {
moveSpeed=10;
}
onClipEvent(enterFrame) {
if(Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
}else if(Key.isDown(Key.LEFT)){
this._x-=moveSpeed;
}
if(Key.isDown(Key.DOWN)){
this._y+=moveSpeed;
}else if(Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}
}
Under rating threshold (hideshow)
it won't work for me. ship doesn't move. just says 'The class ship.png needs to be defined in a class whose relative path his ship/png.as' in the errors box thing.. what does this mean
Under rating threshold (hideshow)
I did manage to get the ship roll across the screen but when i added the control text thingy for right arrow my ship didnt react at all, whats wrong. Heres the scrip ive written there so far:
class Ship extends MovieClip
{
var velocity;
function onLoad()
{
velocity = 10;
}
function onEnterFrame()
{
if( Key.isDown(Key.RIGHT) )
{
_x = _x + velocity;
}
}
{
_x = _x + velocity;
}
}
Under rating threshold (hideshow)
could anyone help me out here? When on page 9 and i'm suppose to see a ship when doing a control-test movie, and dont see anything. I believe it is that i'm saving the files all wrong, as in wrong folder. What folder is the FLA (flash source file) And just save it randomly inside Adobe/Adobe Flash CS5 ? Reply would be really really nice, either here or on mail on this site. THANKS!
Under rating threshold (hideshow)
check out my shooturial inspired game at
http://www.kongregate.com/games/rosslyn568/planet-defender
suggestions appreciated. thanks
Under rating threshold (hideshow)
This is a great tutorial! YAY! I was (so) happy when my ship could actually move around the background (I drew dead people all over the scene).
Under rating threshold (hideshow)
sethia, it means you already have a class/identifier with the same name, so you need to delete that one or choose a different name
Under rating threshold (hideshow)
did anyone have to buy quicktime player 7 or somthing to save the picture of the ship? if not tell me how because i dont want to pay $40!
Under rating threshold (hideshow)
Another thing I may add, is that I have windows vista. Any other PC should work but the tutorial is in a mac format. So my comments should help the people using PC's.
Under rating threshold (hideshow)
Part 2: Fill in the needed information, and remember to name it the same as it is in your code. Another reminder is that the compiler error tab will show too. This means that if you made some incorrect syntax errors in your code, you will be able to see where and what mistake you have made. This is located right by your time line. There should be a tab, if you don't have this tab then I guess you did it wrong. I hope this helped people out, I rushed through this tutorial making mistakes everywhere.
Under rating threshold (hideshow)
One big problem that I run into was one that everyone frequently asked to correct. Yes, you need to save each file the same but when I did this I ran into the same movement problem. If you take a look on page 4 on this tutorial, in the middle of the page there will be a paragraph. This is the convert symbol paragraph. Well once you get to the convert symbol window, there is a advanced drop down. It is right underneath the Library root link. Click that and it is all there. Now on page 4 of the tutorial click on the picture(the middle one). I am posting part 2.
Under rating threshold (hideshow)
Awesome tutorial. I've been doing alot of diffrent coding in my time(Lua,C++,Expression2,Batch and more) And this kind of coding reminds me mostly about LuA and Expression2.
And for those who don't know what Expression2 is, it's a coding ADDON to a game i play.
Good luck to you all
P.S: Try looking at some lua tutorials if you don't get this, it might clear up some things.
P.S.S: I recommand you to search "Humblesnurp" on youtube. He teaches the most (Expression2 - Lua).
Thanks for reading! ;)
Under rating threshold (hideshow)
EVERY1 WHO CANT GET THE SHIP TO FLY: first make sure your filenames and object name and class name are the same and your files are saved just like the tutorial says... THEN go (in CS5) down to the timeline menu to the right of where it says "TIMELINE" to the "COMPILER ERROR" menu. Click on it. if there are any compiler errors (like you forgot a parenthesis after a function, or a semicolon after a line of code) the SHIP WONT MOVE. congratulations. Welcome to the world of compilers ;)
Under rating threshold (hideshow)
If you are using any later CS's it still will work all you have to do is make sure that you are using action scripting 2 and it will work.
Under rating threshold (hideshow)
Can someone help me i did all steps and when i test movie adobe says : The file 'toplevel.as', which is required for typechecking ActionScript 2.0, could not be found. Please make sure the directory '$(LocalData)/Classes' is listed in the global classpath of the ActionScript Preferences. Anyone know what to do ?
Under rating threshold (hideshow)
Thank you Kong this is the best I just had to re-save my Ship script as ship.as and actually typing.as after teh Ship when saving
Under rating threshold (hideshow)
my ship wouldn't move, i found the problem for me, where is says velocity =10 you must make sure there is no space after the = sign i think, because that fixed the problem for me
Under rating threshold (hideshow)
I get a complier error:
Symbol=Ship, layer=Layer 1, frame=1, Line 1 The class or interface 'Ship' could not be loaded.
I followed everything to the T from the start... 3 times. Same problem.
Under rating threshold (hideshow)
I like how Shootorial #0 has 381,000 views, this has 227,000, #5 has 95,000, and finally, with a whopping 1/7 (50,000) of #0's views is the fiinal Shootorial that actually defines a full game.
Under rating threshold (hideshow)
Um please respond fast. I followed the instructions and when i got to the part where it is supposed to move when you hit the right arrow key, it moved without me hitting the arrow. and then i went to the step where the ship is not supposed to move and changed it to be like that and the ship still moved! when it did not even have the info to move! so PLEASE RESPOND FAST I WANT TO DO THIS! thank you.