Games Achievements My Kong Sign In

Comments for Shootorial #1

« Back to Shootorial #1

Altwing

Sep. 01, 2010

Under rating threshold (show) Okay! Today I decided, after playing on Kongregate, that I wanted to learn how to create my own game in Flash. So I just downloaded CS3. I have a 30 day free trial. Which is good, as I know nothing. Attempted to do the “Shootorial” series. It took me about 4 hours to get through a 5 minute tutorial, because I did not realize that ‘velocity=10’ is different from ‘velocity= 10’. Apparently Flash is both case-sensitive and spacing-sensitive. Good to know. Anyway, I drew my own little spaceship and got it to move around the screen! I feel very accomplished now, and figure that another 36 years at this rate and I'll be cranking out "Cursed Treasure" and "Epic War" and games like that.

+ - !

(192)

NinjaNo1

Jul. 14, 2010

Under rating threshold (show) Ok, i was stuck on page 9 fora a long time, and couldn't find any answer as to why my ship stood still, but then i realized that my class was named Ship, but my code was saved as ship.as. So yeah, you need to match the casing as well. Hope this helps someone.

+ - !

(215)

DragonSpire

Jun. 07, 2010

Under rating threshold (show) For whom the ship doesn't move, make sure you're: using ActionScript 2.0 not 3.0, saving both files into the same folder, watching for case when naming files and properties.

+ - !

(80)

12sea21

Aug. 22, 2010

Under rating threshold (show) All right, i got this code: class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { _x += velocity; } } Note that the _x is += (adding) velocity, and not becoming itself + velocity, Try this. then try to make the ship as an instance name (SHIP). If nothing works. pm me.

+ - !

(31)

3nd0fw0r1d

Jun. 20, 2010

Under rating threshold (show) When doing the tutorial, make sure you save the file the same name as the "class" name. Sample Line 1: "class Ship extends MovieClip {" you would save the file as "Ship". Note: You cannot "test movie" unless your script files have been saved already. Also Note: make sure the name of the actual MovieClip is the same as the class name. 2nd Note: Make sure when you start, you use "Flash File (ActionScript 2.0)" Last Note: Read the tutorial carefully and click on the pictures to make them larger. If you get any errors, make sure your script looks like the tutorial's and that all script files have been saved. P.S.: Make sure all Brackets "{" pair up with an end Bracket "}" somewhere in the script. The number of brackets and end brackets should be the same.

+ - !

(90)

Gnumber3BriCk

Jun. 01, 2014

Under rating threshold (show) Nothing downloaded, so I have no idea what to do.

+ - !

(4)

mihi2005

Jul. 08, 2013

Under rating threshold (show) Not just i love this game, this is my favorite site.

+ - !

(4)

aczom

Aug. 15, 2010

Under rating threshold (show) I had alot of the problems people are commenting about, and here are my solutions: 1.Start with actionscript 2.0, because 3.0 wont work 2.If you ship stands still, then make sure your code is the same as the one in the pictures, right down to every TAB, ";" and "{" / "}" even capital letters matter! 3.you must save both he script and the flash in the same place before it will work. 3.

+ - !

(8)

ki1lr

Jan. 07, 2012

Under rating threshold (show) ok guys srry for that comment. i went on to #5 and i am learning stuff... i had a bad day yesterday :(

+ - !

(3)

Camels

Jun. 14, 2014

Under rating threshold (show) Current Version of the Flash program i use only supports ActionScript3.0 . so you cant use onLoad() or onEnterFrame() function but you have to do it with EventHandlers. I had to consult other tutorials to get this working.

+ - !

(3)

FesteringNewt

May. 16, 2014

Under rating threshold (show) I keep on getting 5007: An ActionScript file must have at least one externally visible definition. I guessing it's because I'm using AS3 instead of AS2. Could someone verify and if this is true explain to me why.

+ - !

(3)

TheSupaHobo

Jan. 10, 2012

Under rating threshold (show) Wow, spent over an hour from pages 1 to 9 and reading the top comments only to find that the ship still isn't moving. Read a thumbed down comment about saving before testing and it moved.

+ - !

(3)

Inflame112

Aug. 16, 2010

Under rating threshold (show) Make sure you save. Then save again. Everytime you change something, and before you test, save. It's impossible to stress enough. Save!

+ - !

(3)

12sea21

Aug. 22, 2010

Under rating threshold (show) All right, i got this code: class Ship extends MovieClip { var velocity; function onLoad() { velocity = 10; } function onEnterFrame() { _x += velocity; } } Note that the _x is += (adding) velocity, and not becoming itself + velocity, Try this. then try to make the ship as an instance name (SHIP). If nothing works. pm me. KEEP THE COMMENT ALIVE! [+]. PM me for help ^^

+ - !

(10)

ench97

Jun. 12, 2010

Under rating threshold (show) HELP! I did everything the tutorial said but the ship still doesn't move!

+ - !

(12)

Gecko99

Apr. 18, 2010

Under rating threshold (show) I'm stuck. I put in the code, and when I go to Test Movie, the ship stays where it is. I get a compiler error saying that "The class of interface 'Ship' could not be loaded." What am I doing wrong?

+ - !

(17)

kaedeb

May. 02, 2013

Under rating threshold (show) (ATTENTION!!!!)Ok who ever is stuck on Page 9 thanks to another player, if the ship is not moving, go to your action script and save it! The .swf runs on the action scipt you saved first, so please, if your ship wont move SAVE THE ACTIONSCIPT FILE!

+ - !

(2)

calvinjliao

Feb. 07, 2011

Under rating threshold (show) for all you people wondering why the code is not working, save your work first. then try again

+ - !

(5)

Gamer36

Dec. 30, 2010

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

+ - !

(5)

victorytaste

Mar. 31, 2014

Under rating threshold (show) easy to use and very helpful thanks

+ - !

(2)

Rasteirinho33

Jun. 17, 2013

Under rating threshold (show) you need to save alaways your code

+ - !

(2)

btrammzz

Jul. 23, 2013

Under rating threshold (show) Many thanks for your very helpful tutorial, so far, this is my first game made in flash as2 http://browse.deviantart.com/art/Flash-game-study-AS2-276658706 of course, i could not have done that without this helpful, easy-to-folow tutorial. I wonder if you already have an offline version of this shootorial in AS3? i am an (aspiring) artist and i dont have any background in programming.

+ - !

(2)

voxy

Jan. 16, 2012

Under rating threshold (show) lol on page 2 sais abode not adobe :DD

+ - !

(2)

henry700

Nov. 10, 2011

Under rating threshold (show) Oh man, i made this in AS3 and its hella lot different and a bit harder. and now the ship cant go diagonal-ways, because AS3 uses Event Callbacks. It was way simpler and better with checks man, they could put their new stuff in(Event Callbacks for keyboard pressing and releasing) but why delete Key.isdown? That sucked.

+ - !

(2)

VonSon

Nov. 01, 2011

Under rating threshold (show) Taxi: You have to use an image-editing tool to "delete" pixels around your pixel art, which is not MS Paint. I recommend Paint.NET because of its easy-to-use interface and extended features. If you do decide to use it, use the magic wand, click on your ship and press delete. Should fix it. Nexus: The tutorial is outdated, therefore you must use the outdated software that was available at the time. You need CS3, not CS5(at least I think).

+ - !

(2)

awkbawk

Aug. 11, 2011

Under rating threshold (show) I managed to get to page 10. My ship moved from left to right on page 9, but when I change onenterframe function it won't budge.

+ - !

(2)

6238087

Jul. 26, 2011

Under rating threshold (show) I DONT GET IT i tried to make the ship thing move but it wont let me it stays the same and it says error message Symbol=Symbol 1, layer=Layer 1, frame=1, Line 1 The class or interface 'Ship' could not be loaded.

+ - !

(2)

Shane_Da_Sniper

Jul. 14, 2011

Under rating threshold (show) Was stuck for 15 minutes because i had OnLoad() instead of onLoad(). XD

+ - !

(2)

duntey1000

Jul. 11, 2011

Under rating threshold (show) I thought "maybe it will work for cs5!", then an hour of copying and reading "it doesnt" D :

+ - !

(2)

felix2020

Jun. 28, 2011

Under rating threshold (show) Im stuck on step 9, just as many other people are/were. I followed all the instructions very carefully, and even redid the whole thing twice but it still doesn't move.. i've made sure the caps, and spacing is correct, and that im using AS2 instead of AS3. Can anyone help please?? pm if you can

+ - !

(2)

jigmin200

Jun. 20, 2011

Under rating threshold (show) Im stuck on step 9. i cant get my ship to move. im about to give up. can anyone help me? pm me if you can help

+ - !

(2)

lildeamon

May. 29, 2011

Under rating threshold (show) Symbol=ship, layer=Layer 1, frame=1, Line 1 The class or interface 'ship' could not be loaded. HELP

+ - !

(2)

time562

May. 26, 2011

Under rating threshold (show) By the time this downloads, my trial will be over :0

+ - !

(2)

rotteddude

Apr. 30, 2011

Under rating threshold (show) YES I GOT it i got past page 9 wat i did: saved the action script into a folder on its own(make sure same letters and case etc) and then i saved the flash file to the same folder

+ - !

(2)

YeomanSam

Apr. 18, 2011

Under rating threshold (show) I had a big problem on page 9 too. It was because I created my own image, and didn't link it to a class, meaning good code wasn't affecting anything. caps matter, spaces and empty lines not a whole lot.

+ - !

(2)

redfo1

Apr. 17, 2011

Under rating threshold (show) Too bad the shootorials aren't made for AS3. It would be great if they were: it's hard to find good tutorials for AS3.

+ - !

(2)

namenoob

Apr. 16, 2011

Under rating threshold (show) thank you for shootorial i will try to publish my 1st game soon

+ - !

(2)

Buggy132kX

Apr. 10, 2011

Under rating threshold (show) I have never been happier to see a plane move up and down.

+ - !

(2)

morrowind3

Mar. 12, 2011

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

+ - !

(2)

NuKe69

Mar. 06, 2011

Under rating threshold (show) Weee my ship flys!!!!! I feel so kool now. :) awesome tutorials.

+ - !

(2)

Camoybot

Feb. 25, 2011

Under rating threshold (show) D: I put in the same code for Ship.as but my ship will not move on its own. ;-; Could someone halp?

+ - !

(2)

Colbis

Jan. 24, 2011

Under rating threshold (show) is the link for the source files on page 1 broke for anyone else?

+ - !

(2)

euanstevenson

Dec. 30, 2010

Under rating threshold (show) To make it clear you need that .as in the file name

+ - !

(0)

marcie163

Dec. 13, 2010

Under rating threshold (show) the link of the pic of the ship doesn't work can anyone give it to me?

+ - !

(2)

loodwig

Nov. 05, 2010

Under rating threshold (show) //page 2 function EnterFrame(e:Event):void { if (isKeyDown(KEY_UP)) { this.y = this.y - velocity; } if (isKeyDown(KEY_DOWN)) { this.y = this.y + velocity; } if (isKeyDown(KEY_LEFT)) { this.x = this.x - velocity; } if (isKeyDown(KEY_RIGHT)) { this.x = this.x + velocity; } } function checkKeysDown(event:KeyboardEvent):void{ keyArray[event.keyCode][1]=true; } function checkKeysUp(event:KeyboardEvent):void{ keyArray[event.keyCode][1]=false; } function isKeyDown(X){ return keyArray[X][1]; } } }

+ - !

(2)

m444

Oct. 27, 2010

Under rating threshold (show) It spelled Adobe wrong on page 2

+ - !

(2)

spartan2744

Oct. 18, 2010

Under rating threshold (show) I have a problem, i have EXACTLY what i was suppose to, this this came up: Symbol=Ship, layer=Layer 1, frame=1, Line 1 The class or interface 'Ship' could not be loaded. please help me :( message me or something

+ - !

(2)

Highscore

Oct. 16, 2010

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

+ - !

(2)

Highscore

Oct. 15, 2010

Under rating threshold (show) i had the same problem

+ - !

(2)

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)

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