Games Achievements My Kong Sign In

Comments for Shootorial #1

« Back to Shootorial #1

AngryCarrotGames

Oct. 03, 2009

Under rating threshold (show) i did that but my problem is that it doesnt move at all... this is what i put 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; } } }

+ - !

(0)

Shushoto

Oct. 03, 2009

Under rating threshold (show) Umm kenny.. If the ship's still going to the right regardless of user input, it's because you didn't delete the original "function onEnterFrame() { _x = _x + velocity; }" code... The tutorial wants you to replace it with the new onEnterFrame, not to add a second. Angry Carrot, looks like you have the same problem...

+ - !

(0)

AngryCarrotGames

Oct. 03, 2009

Under rating threshold (show) it says "the same member name may not be repeated more than once. function onEnterFrame()

+ - !

(0)

Razentsu

Oct. 03, 2009

Under rating threshold (show) Sweet, I got it. :D

+ - !

(0)

hmmmmmmmmm

Oct. 02, 2009

Under rating threshold (show) This will help so much to make a decent game.

+ - !

(0)

Kennyboo

Oct. 02, 2009

Under rating threshold (show) i cant seem to make my ship move right with the right arrow key. it works automatically but not with the arrows. i have checked if the caps is right and the names of everything.

+ - !

(0)

Kennyboo

Sep. 30, 2009

Under rating threshold (show) i can make my ship move automatically right but when i put in the right key code it just does it automatically again! can somebody help me plz

+ - !

(0)

uzzbuzz

Sep. 28, 2009

Under rating threshold (show) geez, this is really confusing, but i'm slowly starting to get it

+ - !

(0)

lotrarwen0

Sep. 27, 2009

Under rating threshold (show) Remember to name everything in the same case! It is case sensitive. File names, and also in the script itself.

+ - !

(0)

idkwtp

Sep. 26, 2009

Under rating threshold (show) omg... my script is EXACTLY the same, but my ship wont move!!!

+ - !

(0)

Bandaniel

Sep. 25, 2009

Under rating threshold (show) props to the fist of god album work.

+ - !

(0)

Jim7

Sep. 23, 2009

Under rating threshold (show) Shootorials ftw!

+ - !

(0)

devex3

Sep. 23, 2009

Under rating threshold (show) I have done this before, It helps to go over it again. Extremo, you need to save your .as (actionscript) file as ship, not ship.as if tht isnt the problem, you need to create a folder called 'Ship CS(version)' and put all stuff in there. Save everything multiple times. I am gonna try doing another one, using the shootorial as a base. Wish me luck! lol

+ - !

(0)

c3Rhcno

Sep. 23, 2009

Under rating threshold (show) Doesn't work.

+ - !

(0)

philiosapien

Sep. 22, 2009

Under rating threshold (show) what the fuk you piece of shit program!! i am using the fuking ACTIONSCRIPT 2.0! you fuking piece of fuking shit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

+ - !

(0)

philiosapien

Sep. 21, 2009

Under rating threshold (show) ActionScript 2.0 class scripts may only define class or interface constructs. i am using action script 2.0 WTF fix it kong

+ - !

(-1)

philiosapien

Sep. 21, 2009

Under rating threshold (show) it sais something about "the class "ship" needs to be defined in a file whos relative path is 'ship.as'." but i already asved it as "ship.as", and i saved the fla file in the same folder aswell. this happened to me too so answer all of us game makers you bitch

+ - !

(-1)

kingster113

Sep. 20, 2009

Under rating threshold (show) and always remember to save everything first in same folder before testing the video.

+ - !

(0)

kingster113

Sep. 20, 2009

Under rating threshold (show) the AS is case sensitive. Remember to name the classes and saved files using only lower case characters. Mine at first had the same problem, due to different cases used. Now it's working once I changed the cases to be the same; on both from the tut and my own work.

+ - !

(0)

linemaniac231

Sep. 18, 2009

Under rating threshold (show) I tried it and it didnt work. I do it perfectly, but the ship just sits there.

+ - !

(0)

extreemo

Sep. 17, 2009

Under rating threshold (show) can somebody help me if get the hole time 1 error how to fix it? errror= be defined in a file whose relative path is 'Ship.as'. class Ship extends MovieClip Total ActionScript Errors: 1 Reported Errors: 1

+ - !

(0)

esdrax

Sep. 17, 2009

Under rating threshold (show) it sais something about "the class "ship" needs to be defined in a file whos relative path is 'ship.as'." but i already asved it as "ship.as", and i saved the fla file in the same folder aswell.

+ - !

(0)

esdrax

Sep. 17, 2009

Under rating threshold (show) i'm having problems in page 9, the ship does'nt move!

+ - !

(0)

esdrax

Sep. 17, 2009

Under rating threshold (show) is the fla file already saved, or do you have to save it first?

+ - !

(0)

evilnerd666

Sep. 15, 2009

Under rating threshold (show) It might be me being silly (probably is) but Flash keeps telling me that onEnterFrame() isn't permitted in a class definition Any clues?

+ - !

(0)

Assassin159

Sep. 15, 2009

Under rating threshold (show) yes! it works!!!!!!!!!! muhuhahahahahahahahahahaha

+ - !

(0)

CrimsonFlower

Sep. 14, 2009

Under rating threshold (show) nevermind, its working now for some reason. i feel stupid

+ - !

(0)

CrimsonFlower

Sep. 14, 2009

Under rating threshold (show) someone help me please, i name everything Ship, but the ship still doesnt move.

+ - !

(0)

falariem

Sep. 13, 2009

Under rating threshold (show) And to think, all this time, I've been doing it the hard way. I wish I'd found this tutorial long ago - would've saved so much time and money. Great series!

+ - !

(0)

Nimrod09

Sep. 13, 2009

Under rating threshold (show) Sorry, its: Character moving tutorial

+ - !

(0)

Nimrod09

Sep. 13, 2009

Under rating threshold (show) I have solved all problems: Character movment tutorial You can forget about shootorial #1, just look that up on this site!

+ - !

(0)

Nimrod09

Sep. 13, 2009

Under rating threshold (show) Can someone help me...this is really stupid...

+ - !

(0)

ShadoWolf00

Sep. 13, 2009

Under rating threshold (show) GOT IT!!! I'm not sure what made it work, but after I changed every frickin property about the Ship class it moves now

+ - !

(0)

ShadoWolf00

Sep. 13, 2009

Under rating threshold (show) I did that. and it was in the same directory as well

+ - !

(0)

wertyujh

Sep. 13, 2009

Under rating threshold (show) u must save the ship class (the ship file) as = Ship.as

+ - !

(0)

ShadoWolf00

Sep. 12, 2009

Under rating threshold (show) that's what mine keeps saying too.

+ - !

(0)

Nimrod09

Sep. 12, 2009

Under rating threshold (show) Awww...mines not moving at all it said the class or interface ship could not be loaded...

+ - !

(0)

a3lex33

Sep. 10, 2009

Under rating threshold (show) Everything here is working (on CS4 at least), thanks ti keeman, his advise to save before running this helped me very much

+ - !

(0)

crashbang

Sep. 09, 2009

Under rating threshold (show) nevermind, found a mirror for the old CS3

+ - !

(0)

crashbang

Sep. 09, 2009

Under rating threshold (show) it would be nice if it would work with CS4. i've done all of the suggestions and it matches exactly. and all it does is sit there.

+ - !

(0)

pebble_garden

Sep. 09, 2009

Under rating threshold (show) Re: "Ship doesn't move" problem. I'm using CS4 and I couldn't get my ship to move, after much searching I found my mistake. When creating the Ship symbol, I didn't enter "Ship" in the Class field. You need "Ship" (minus quotes) in both the Identifier and Class fields. Hope that helps someone.

+ - !

(0)

omazing

Sep. 05, 2009

Under rating threshold (show) Never Mind what I said earlier... I FIXED IT! Woohoo... onto shootorial #2...

+ - !

(0)

omazing

Sep. 05, 2009

Under rating threshold (show) someone please reply to the previous comment ASAP... I will surely see it BECAUSE I AM ON THIS DARN THING EVERYDAY!

+ - !

(0)

omazing

Sep. 05, 2009

Under rating threshold (show) darn... i did everything it said and it still won't work (and yes I said "Ship" for both...) DARN IT! I need help!

+ - !

(0)

Max1233

Sep. 04, 2009

Under rating threshold (show) It works, Very Good.

+ - !

(0)

robocombot

Sep. 04, 2009

Under rating threshold (show) oh yeah its "The class or interface 'Ship' could not be loaded." if you get that check you have not saved the file as ship.as - and also put all the stuff in same directory.

+ - !

(0)

robocombot

Sep. 04, 2009

Under rating threshold (show) also; flash sees ship.as and Ship.as as different. you will get an invalid class error or something.

+ - !

(0)

robocombot

Sep. 04, 2009

Under rating threshold (show) for those who struggle getting the code right; try downloading FlashDevelop (www.flashdevelop.org). Use this to make Ship.as etc. It is much more helpful than the built in one in Flash.

+ - !

(0)

Ninja_Puding

Sep. 03, 2009

Under rating threshold (show) sry it works only type 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; } } } that code in your actionscript data and save it...

+ - !

(0)

Ninja_Puding

Sep. 03, 2009

Under rating threshold (show) it works until the keboard thing -.-

+ - !

(0)

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