Games Achievements My Kong Sign In

Comments for Shootorial #1

« Back to Shootorial #1

DowntownVL

Sep. 24, 2010

Under rating threshold (show) Found out myself how to use WASD instead of arrow keys, or also using both of them. Pm me if interested.

+ - !

(2)

GeneStarwind

Sep. 11, 2010

Under rating threshold (show) You can auto-format your code if need be. That should keep all these little problems from happening.

+ - !

(2)

chidori2890

Aug. 17, 2010

Under rating threshold (show) this was no help at all for me. does not work i followed every direction and still nothing. make it easier to follow or make it right

+ - !

(2)

SPACEDUDE360000

Aug. 09, 2010

Under rating threshold (show) Make sure to save before you test it to apply the changes.

+ - !

(2)

STRAT0STR3AK

Aug. 04, 2010

Under rating threshold (show) What I missed, was on page 4, where It tells you to add linkage to your class file, and I bet everyone else missed it too, because it was an important part that I considered useless text that I could breeze through, because I thought I knew everything!

+ - !

(2)

Jawburger

Jun. 12, 2010

Under rating threshold (show) I am using "Adobe Flash Professional CS5" is that okay? an also when i try to test on page 9 it gives me an error saying " C:\Users\Jason\Documents\Jason Files\ Adobe game making\shootorial game\Ship.as, Line 1 Syntax error." any help???????

+ - !

(2)

RStone4

Aug. 18, 2012

Under rating threshold (show) It would be nice if they made an AS3 version.

+ - !

(4)

Beastly_Priest

Jul. 04, 2012

Under rating threshold (show) I'm stuck on page 9 and the Ship won't move. I have double checked the code and the linkage spelling/cases. Can someone please help.

+ - !

(4)

MoNstERs

Sep. 14, 2012

Under rating threshold (show) Stuck on page 9 for a long time, using CS5.5. When you first convert to symbol, you NEED to click the tiny little "Advanced" options and copy the boxes such as "Export for Actionscript" AND name both fields as "Ship"... this was my problem.

+ - !

(4)

Tman813

Jun. 24, 2011

Under rating threshold (show) great tutorials. unfortunately waaaay to many people have been abusing this amazing gift by copying exactly the same images and everything. atleast draw your own. or if your to lazy to do that atleast dont upload it to kongregate.

+ - !

(4)

youknowiactafool

Feb. 01, 2011

Under rating threshold (show) 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!

+ - !

(4)

Gamer36

Dec. 30, 2010

Under rating threshold (show) 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.

+ - !

(4)

12sea21

Aug. 22, 2010

Under rating threshold (show) Adn after you make changes (like changing the velocity you need to save (ctrl + S)

+ - !

(4)

hughesj

Feb. 16, 2012

Under rating threshold (show) hi all, Just to let you know I'm a dev so if anyone encounters problems feel free to message me and i'll be happy to help

+ - !

(3)

werk10ths

Jun. 09, 2011

Under rating threshold (show) I am using Flash Cs 5.5, Action Script 2.0 and was having a problem getting my Ship to move as well (Page 9/10 of Shootorial), getting very frustrated reading all the comments with no answer. There was one mention of making sure the amount of open brackets needs to match the amount of closed brackets. So I looked at the code and played around with it, and eventually got it right. My ship now moves in all 4 directions. Here is my code: class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { if( Key.isDown(Key.RIGHT) ) { _x = _x + velocity; } if( Key.isDown(Key.LEFT) ) { _x = _x - velocity; } if( Key.isDown(Key.UP) ) { _y = _y - velocity; } if( Key.isDown(Key.DOWN) ) { _y = _y + velocity; } } } Hope it helps most of you having the problem!

+ - !

(3)

Bob_stew

Jan. 31, 2011

Under rating threshold (show) 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.

+ - !

(3)

marty55

Nov. 10, 2010

Under rating threshold (show) they need a shootorial for CS5

+ - !

(3)

killerkerara

Aug. 25, 2010

Under rating threshold (show) Mine was stuck for awhile until I figured out that when I converted it to a movie clip, I did not change the class to "Ship". Make sure you click the advanced options buttons at this step to be sure that you set the class to "Ship".

+ - !

(3)

12sea21

Aug. 22, 2010

Under rating threshold (show) @Hitandrun 1. Save! 2. Make sure your Ship.as is in the same folder with the Ship.fla 3. Make sure that the class Ship is the exact same (caps) as the .as file. 4. else, pm me

+ - !

(3)

Spectrumvelocity

Aug. 06, 2010

Under rating threshold (show) why didnt they just create a video for this i think it would be much easier

+ - !

(3)

number5800

Dec. 09, 2010

Under rating threshold (show) Stuck on page 9, I can't make the ship move. The code is perfect, the code and fla are saved in the same place, and the ship is a movie clip. What could I have done wrong? They're both capitalized Ship.... I'm using actionscript 2 like it tells me to

+ - !

(4)

xland44

Jun. 22, 2011

Under rating threshold (show) LOL on page 2 he spelled Adobe as "Abode" xD

+ - !

(3)

Fantasticalism

Sep. 05, 2010

Under rating threshold (show) this is so exciting to me thinking "this is the same kind of coding that they used in GemCraft and Infectonator and all those games" and I am learning how. I dont think I will ever be able to make games like those, but still.

+ - !

(3)

BeaunerSlavje

Jul. 17, 2010

Under rating threshold (show) <-- noob thaught this is a game

+ - !

(3)

yoda2395

Mar. 01, 2014

Under rating threshold (show) I got sort of confused, but I soon did it!

+ - !

(1)

azhrak

Jun. 19, 2012

Under rating threshold (show) thank you!

+ - !

(1)

Sketchist

Apr. 15, 2012

Under rating threshold (show) Extremely helpful! Thank you Kongregate! I have just learned something from this tutorial! Knowledge = power; Kongregate = knowledge;

+ - !

(2)

zippy908

Apr. 01, 2012

Under rating threshold (show) i cliked the button to download but nothing came up

+ - !

(1)

xamtech

Dec. 30, 2011

Under rating threshold (show) is there an updated version for actionscript 3.0... that would be really helpful

+ - !

(1)

legends414

Dec. 29, 2011

Under rating threshold (show) I got stuck on page 10, because I didn't add in the extra semi colon in between the last two } (}) }

+ - !

(1)

thesinz

Dec. 24, 2011

Under rating threshold (show) can i use flash 8 instead??

+ - !

(1)

bb9345

Nov. 28, 2011

Under rating threshold (show) I've double checked the coding and everything is correct in the casing when I save but it just says at the bottom "COMPILER ERRORS - 1 REPORTED" then below "The class or interface 'Ship' could not be loaded." On Flash CS4.

+ - !

(1)

GUkiller

Nov. 13, 2011

Under rating threshold (show) man sorry for the last comment but i did everything again and put all the scripts with Ship.as file and then worked

+ - !

(1)

GUkiller

Nov. 13, 2011

Under rating threshold (show) why my ship doesn't fly when i press the arrow keys? i done everything that the tutorial says and checked the names and they match, when i test movie it just don't move...

+ - !

(1)

SweetiePie

Nov. 02, 2011

Under rating threshold (show) 5/5 I've been looking all over the net for a decent flash tutorial, and this one is by far the best.

+ - !

(1)

akiko01

Oct. 25, 2011

Under rating threshold (show) _x = _x + velocity; is correct, _x + _x = velocity; is wrong, dont do what i did, save you alot of time wondering why you have a syntax error.

+ - !

(1)

Derek3803

Oct. 10, 2011

Under rating threshold (show) Works on CS5, just keep trying! And im pretty sure you need to add a } at the end!

+ - !

(-1)

wingedhero2

Sep. 13, 2011

Under rating threshold (show) i bet this is how starwish started

+ - !

(2)

DIProgan

Aug. 19, 2011

Under rating threshold (show) Well read through all comments and nothing got me past page 9. Ship is _not_ moving. Using CS4.

+ - !

(1)

Gloogloos

Aug. 13, 2011

Under rating threshold (show) Does this not work in CS5, because my code is identical to this one, but the interface in CS5 is different so im not always sure if im doing things correctly, but when i try to run it it just sits there but there are no errors or warnings

+ - !

(1)

KenN8

Aug. 12, 2011

Under rating threshold (show) So what is wrong with my code?... Whenever I start the game, my ship automatically starts moving. class Ship1 extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { if (Key.isDown(Key.RIGHT)) { _x = _x+velocity; } if (Key.isDown(Key.LEFT)) { _x = _x-velocity; } if (Key.isDown(Key.UP)) { _y = _y-velocity; } if (Key.isDown(Key.DOWN)) { _y = _y+velocity; } _x = _x+velocity; } }

+ - !

(1)

pooplingpo

Aug. 05, 2011

Under rating threshold (show) Be sure to check in the class. Make sure your "class Ship extends movie clip" and Ship save files are the same case. Having them in different cases will cause the ship not to move when the clip is tested.

+ - !

(1)

Vladeon

Jul. 27, 2011

Under rating threshold (show) If you guys want to use the WASD keys instead of the arrow keys, it's quite simple. You just need to input the keycode in the parentheses. For example if I wanted to use the W key to make the ship go up, I would use this code instead, "function onEnterFrame() { if( Key.isDown(87) ) { _x = _x + velocity; } } I haven't tried it yet, but it might be "key.87" instead of just 87. It's actually a lot different in AS3. If you want the other keycodes, this website has a list of them. http://www.aspdotnetfaq.com/Faq/What-is-the-list-of-KeyCodes-for-JavaScript-KeyDown-KeyPress-and-KeyUp-events.aspx

+ - !

(1)

SirGelatina

Jul. 23, 2011

Under rating threshold (show) And... how do i do all that in Action Script 3.0?

+ - !

(1)

BulletToMyHead

Jul. 12, 2011

Under rating threshold (show) Your right you have got to save everytime you make an adjustment before testing the movie! I love these shootorials!

+ - !

(1)

lego_pi

Jul. 09, 2011

Under rating threshold (show) IF YOU ARE HAVING PROBLEMS: Keep trying. That feeling I got when I conquered the problem made it all worth while. And it will for you too. ;)

+ - !

(1)

mannypants

Jun. 07, 2011

Under rating threshold (show) and also remember to save your files before testing them out! :)

+ - !

(1)

mannypants

Jun. 07, 2011

Under rating threshold (show) also had one hell of a time trying to get past page nine-- finally did it so here are some tips: A- rather try writing the code yourself(i know that sounds ridiculous but it works) B- check that when you are working on Cs 5, you work in actionscript 2 not 3 C- also when you make the .png a symbol be sure to set the class and identifier as Ship- note spelling and letter case

+ - !

(1)

Twizler09

May. 18, 2011

Under rating threshold (show) when i put the registration of the ship symbol as center it stays at the top right am i doing somthing wrong any ideas

+ - !

(1)

Syckness

Apr. 29, 2011

Under rating threshold (show) First, the ship doesn't moved, but the only thing that I did was save the "Ship.as" and it worked! :D

+ - !

(1)

  • add a comment
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms Privacy Code of Conduct
© 2024 Kongregate