Under rating threshold (hideshow)
CAN SOMEBODY PLEASE HELP ME!!!! I'm getting stuck on page nine: I have the code perfectly...
class Ship extends MovieClip
{
var velocity;
function onLoad();
{
velocity = 10;
}
function onEnterFrame();
{
_x = _x + velocity;
}
}
and this is what I get for the errors...
/Users/cgeering2013/Flash Game/Ship.as, Line 5 '{' expected
/Users/cgeering2013/Flash Game/Ship.as, Line 10 '{' expected
/Users/cgeering2013/Flash Game/Ship.as, Line 5 Statement block must be terminated by '}'
/Users/cgeering2013/Flash Game/Ship.as, Line 14 Syntax error.
/Users/cgeering2013/Flash Game/Ship.as, Line 2 Statement block must be terminated by '}'
/Users/cgeering2013/Flash Game/Ship.as, Line 14 Syntax error.
I personally think it has something to do with where I saved my files, but I'm not sure. Please help!
Under rating threshold (hideshow)
Okay, okay, okay... Ignore all the other comments, I fixed 'em. Now it's just that the key thing doesn't work and the ship flies right anyways. Please, me is not genus.
Under rating threshold (hideshow)
Now I have a different problem. My ship isn't even there! Error: "Symbol=Symbol 1, layer=Layer 1, frame=1, Line=1 The class or interface 'ship' could not be loaded." Wha-a-a-a-a-a-a-at?
Under rating threshold (hideshow)
Yay! My Ship can do the fly!
The Script could be shorter though:
I.e.:
foobar = foobar + 6
Is the same as
foobar += 6
Just sayin' :D
PS: I see you are using a Mac....
I iz not Amused! >:3
Besides from that:
5/5 for the easy tutorial even a random Techno-phobe could understand.
Under rating threshold (hideshow)
I'm using CS5, but My ship just won't move. What's up with that? I'm on step 9, my code looks right, and I have followed the instructions to the letter. I'm even using actionscript 2!
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)
When i do a test, all i get is a blank screen. I have a error that says 'The class or interface 'Ship' could not be loaded.' Help please!!!
Under rating threshold (hideshow)
am i to stupid for this?... i can see the ship..but everytime i press test, i do have 8 ERRORS...and i dont know how to fix them. first of all well.. i got the german version :D somthing like :Classes can only be defined in external class in action script 2.0... please help me >:[
Under rating threshold (hideshow)
Hi, i am trying to make the shoot game, but in shootorial i cant get the ship to move i hav don it very carefully, i have did it step for stem, my code is just the same as yours, but it dont work, is it because i have cs5 or what
Under rating threshold (hideshow)
Okay so I got everything up to page 10 in the Class correctly, (spaces and typing) although my ship still won't move Right when I press the Right Arrow Key. And yes, I have saved all three files (game.fla, ship.as, and game.swf) together in the same folder. And when I converted the ship to a symbol I named all three areas Ship
I keep getting these same two Compiler Errors:
(Location) Ship.as Line 2 (Description) Statement block must be terminated by '}' (Source) {
(Location) Ship.as Line 16 (Description) Syntax error. (Source) }
Please help!
Under rating threshold (hideshow)
If your ship only moves down and right no matter what key you press, make sure you used he minus (-) sign for velocity when pressing up and left, not the plus (+) sign.
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)
ok im all cunfuzzled my little ship just loves to fly right when i press right sweet i know:) however it also enjoys flying right when i press left or down or up im running cs5 but im using actionscript 2.0 any help would be appriciated
Under rating threshold (hideshow)
There is clearly something wrong, I'm not a coder, but in the beginning where you can move the ship around, it displays the same control problem for every game except a few. Clearly something wrong with the coding, because I'm not gonna waste my time trying to go to mozilla firefux(which is only a few seconds) when I can learn the mistake of coders. giggity
Under rating threshold (hideshow)
I want to make a game like PR2, Not like Shoot... And if i download Adobe Flash its says that my Computer is going to be broken down D: ...
Under rating threshold (hideshow)
So I spent about an hour trying to get step 10 right cause it would act just like the last step until I realized I had to save the file for it to work...
Under rating threshold (hideshow)
Hmm, CS5 must be different from CS3 since I can make the ship, get it to move, and get the arrow keys working, but it never stops going right. I have to hold the left key in order to stop it, but if I let go of that it will start going right again. And I copied the code exactly from the tutorial, down to the last bracket.
Under rating threshold (hideshow)
My ship doesnt move if i press the keys nothing and when it said it will move automaticly from left to right doesnt moved
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)
My error says "Symbol=Ship, layer=Layer 1, frame=1, Line 1 The class or interface 'Ship' could not be loaded." if anyone can figure it out, I bow down to you.
Under rating threshold (hideshow)
I am stuck on page 9 I am having the same problem that I had last time, there is NO ship whatsoever on my test. Nothing, just a blank page. This needs to be updated cause the current version of flash is CS5, not CS3. And really, basically everyone is getting stuck on this thing.