Comments for Shootorial #4

avatar for mi4c
mi4c

Apr. 25, 2011

Under rating threshold (show) Pro tip: Save all AS after every page of this tut..

+ - !

(23)

avatar for IlILegitIlI
IlILegitIlI

Aug. 21, 2011

Under rating threshold (show) I Cannot Thank Kongregate Enough For These Tuts :D.

+ - !

(21)

avatar for AryuLimitless
AryuLimitless

May. 5, 2011

Under rating threshold (show) NOTE: DOn't forget to save your projects FREQUENTLY-- After EVERY change. Otherwise you'll never get the stuff working when you test! LOL O.o

+ - !

(30)

avatar for doyoulikewaffles
doyoulikewaffles

Aug. 9, 2010

Under rating threshold (show) lol making games is fun :)

+ - !

(70)

avatar for MrBright
MrBright

Jun. 23, 2010

Under rating threshold (show) Thanks again, Kongregate.

+ - !

(70)

avatar for Deathisfury
Deathisfury

Aug. 11, 2010

Under rating threshold (show) When I tried this, my ship wouldn't move and the enemies would not come out. I moved the command on my ships code that controlled the enemies so it was in the same { }'s as the Key.Right, Key.Left section. Works like a charm :D

+ - !

(25)

avatar for epicbluedude
epicbluedude

Mar. 10, 2013

Under rating threshold (show) Thanks to my limited art skills, I now have the flying narwhal vs an army of pregnant dolphins. I should have used their graphics -_-

+ - !

(6)

avatar for Cozythrias
Cozythrias

Jun. 4, 2011

Under rating threshold (show) this is a good time to "what happens if i do this?" hence not following all the exact codes, in order to further understand what we are really doing, really this is a good tutorial... really good! 5/5

+ - !

(4)

avatar for finalfight
finalfight

May. 7, 2010

Under rating threshold (show) A very simple error I made om my EnemyShip class was placing a } bracket in the wrong area. It gave me the error message: "ActionScript 2.0 class scripts may only define class or interface constructs." I made a similar mistake with my Ship class and got the error: "This statement is not permitted in a class definition." This also made my ship unable to be moved by my keyboard. So if you got either of those errors check to make sure your } brackets are in the correct spaces. Otherwise the program has been very simple to use so far, onto #5!

+ - !

(15)

avatar for spinzter
spinzter

Jul. 11, 2011

Under rating threshold (show) when i tested mine, there was about 50 ships on the screen lol

+ - !

(3)

avatar for connord2k8
connord2k8

May. 7, 2011

Under rating threshold (show) At first I didn't know where to paste the _y = Math.random()*200 + 50; bit so I put it in the Ship.as... big mistake every time an enemy ship spawned it would teleport my ship to random parts of the screen. Thankfully I found it now :P

+ - !

(3)

avatar for Pixls
Pixls

Jan. 30, 2011

Under rating threshold (show) Thank you for these tutorials. They have helped me alot.

+ - !

(3)

avatar for zingzang454
zingzang454

Sep. 29, 2010

Under rating threshold (show) I know a lot of people have said this already but, i cannot get enemy ships to appear. the only way i have gotten it to work is by placing one on the stage. I have checked the code several times, i have deleted and remade the enemy ships movieclip several times, and it still doesn't work please pm me with an answer if you have one.

+ - !

(3)

avatar for 12sea21
12sea21

Aug. 24, 2010

Under rating threshold (show) LOL i did EnemyTimer < 60 ... instead of > 60... try it! LOL!!!!!!!!!!! hehe...

+ - !

(15)

avatar for Corsyx
Corsyx

Aug. 24, 2011

Under rating threshold (show) @Smo77 It is your names between the movie clip and save file are different... if not...Message mee

+ - !

(2)

avatar for Ozonerx
Ozonerx

Jun. 29, 2011

Under rating threshold (show) If you don't name the enemy ships EnemyShip, where it puts _root.attachMovie("EnemyShip",etc change EnemyShip by the name of your current enemy ships. For example if the enemy ship is called AlienShip, you must put _root.attachMovie("AlienShip", etc). Maybe thats the problem that makes the enemies not appearing.

+ - !

(2)

avatar for Nicklausus
Nicklausus

May. 4, 2011

Under rating threshold (show) If the enemyship dissapears after 2 seconds, go to the ship script and change the "if(enemyTimer > 60)" to "if(enemyTimer > 120)"

+ - !

(2)

avatar for 12pwn
12pwn

Jan. 24, 2011

Under rating threshold (show) When you guys are having problems look at the panel that shows bugs and that might help.

+ - !

(2)

avatar for ZauronX
ZauronX

Jan. 18, 2011

Under rating threshold (show) Is there such thing as a "Key.isUP"??

+ - !

(2)

avatar for slitharg
slitharg

Nov. 23, 2010

Under rating threshold (show) Yesssssssssss I finally got it working

+ - !

(2)

avatar for Duebel
Duebel

Nov. 18, 2010

Under rating threshold (show) For those who seem to have correctly copied the code, but have errors: Perhaps you are missing one of these: ; { } ( ) Or perhaps you have put parts of code in the wrong place. Remember: Computers are the most stupid things you could possibly "talk to". If you don't "speak" their language perfectly flawless, they will not understand you.

+ - !

(2)

avatar for Darkrille
Darkrille

Oct. 31, 2010

Under rating threshold (show) The class or interface 'EnemyShip' could not be loaded. Message me if you have a solution, please...

+ - !

(2)

avatar for GeneStarwind
GeneStarwind

Sep. 12, 2010

Under rating threshold (show) Also... if you must spam, do not not spam the same spelling mistake a thousand damn times.

+ - !

(2)

avatar for Nightwarrior
Nightwarrior

Aug. 2, 2010

Under rating threshold (show) Sick of getting this message "The class or interface 'EnemyShip' could not be loaded." what should i do plz message me

+ - !

(2)

avatar for echiuran
echiuran

Mar. 22, 2011

Under rating threshold (show) add comments to your code so you can remember what you learned like this: // comment or /* comments comets comments */

+ - !

(4)

avatar for AlphaOmegaTroll
AlphaOmegaTroll

Apr. 23, 2011

Under rating threshold (show) For any developers out there I praise you, because you have to deal with this crap. I've done this only for a couple hours and I want to beat the hell out of whoever came up with the case sensitive idea. 1 hour just to change my "e" to "E". But it's worth it :)

+ - !

(3)

avatar for chrisrulez
chrisrulez

Sep. 19, 2010

Under rating threshold (show) If you want to make it so that the furthest up/down is only just touching the edge, try "_y = Math.random()*264 + 18;".

+ - !

(3)

avatar for Biggums426
Biggums426

Jan. 25, 2013

Under rating threshold (show) Spelling error: Page 2, 3) "but we don't need ay enemy ships" ay?

+ - !

(1)

avatar for wafibismail
wafibismail

Aug. 20, 2014

Under rating threshold (show) For those asking for ASDW keycodes, look somewhere for "Javascript Char Codes". They are the codes used. Google it, perhaps.

+ - !

(1)

avatar for Jawburger
Jawburger

May. 25, 2012

Under rating threshold (show) @Oreon Necris I have the same predicament as you had, Any info you can remember will be helpful. For anyone who didn't see, My ship spawns in the top left corner and I get an error saying "Symbol=EnemyShip, layer=Layer 1, frame=1, Line 1 The class or interface 'EnemyShip' could not be loaded." im running CS5.5 on a windows vista. The enemy also does not move. I have codes exactly how it says in here.

+ - !

(1)

avatar for mightyone2
mightyone2

May. 7, 2013

Under rating threshold (show) how would one use ASDW movement instead of the arrow keys?

+ - !

(1)

avatar for thesonofsam
thesonofsam

Jun. 3, 2011

Under rating threshold (show) *If the Enemy ship disappears after 2 seconds* I had a typo in getNextHighestDepth. So it didn't read that it should assign a new number to each one and was generating the same one over and over again (i.e. deleting it every 60 frames and regenerating it on the left side of the screen).

+ - !

(1)

avatar for demyx3
demyx3

Dec. 16, 2010

Under rating threshold (show) check your background.It may ALSO have the instance name"ship" or "Ship" if it does, then remove it.Took me a long time to figure out:P

+ - !

(1)

avatar for WIIhatesYOU
WIIhatesYOU

Nov. 21, 2010

Under rating threshold (show) if i wanted to have multiple enemies, types so to speak, would i have to basicly copy these lines with the class names different like enemyship2 or what not

+ - !

(1)

avatar for loodwig
loodwig

Nov. 9, 2010

Under rating threshold (show) For those of you who are trying to do this in AS3, I advise you make destructor methods, and even consider making an abstract parent class that handles all of your necessary parameters automatically (speed, registering EnterFrame, a generic destructor method). Also, if you are having trouble with a ship always appearing in the begining, that is because you didn't delete the enemy ship from the first frame. This was tough for me, because I couldn't find it behind my own ship.

+ - !

(1)

avatar for austin000
austin000

Oct. 26, 2010

Under rating threshold (show) just can't get this to work. no matter what x and y coordinates i set the ship at, it appears in the upper left corner and stays put. on on cs5

+ - !

(1)

avatar for mightyone2
mightyone2

Oct. 24, 2010

Under rating threshold (show) enemyTimer += 1; if ( enemyTimer > 60) { enemyTimer = 0; _root.attachMovie("EnemyShip", "EnemyShip"+_root.getNextHighestDepth(), _root.getNextHighestDepth()); } i cant get my ships to come....

+ - !

(1)

avatar for Supersnail200
Supersnail200

Aug. 31, 2010

Under rating threshold (show) Flashsoldier, I'm gonna cut you some slack because you are new here. But spamming your problem won't help. You probably put if(enemytimer < 60) instead of if(enemytimer > 60)

+ - !

(2)

avatar for Brotha_C
Brotha_C

Aug. 27, 2010

Under rating threshold (show) @randomguy1273: When you create a new file, you have to select 'ActionScript 2.0.' These tutorials are made for Actionscript 2.0, so make sure you are using that, not the current version, which is 3.0. Hope that helps! :P

+ - !

(1)

avatar for Spudgeaholic
Spudgeaholic

Aug. 23, 2010

Under rating threshold (show) @ The Red Square Go onto the Enemy Ship tab and overwrite the _y = Math.random() *300 with it.

+ - !

(1)

avatar for tollyboyz
tollyboyz

Aug. 3, 2010

Under rating threshold (show) Nevermind, I found it. I had a greater than sign as a less than sign. I should have had: if (enemyTimer > 60), but instead I had: if (enemyTimer < 60)

+ - !

(2)

avatar for The_Red_Square
The_Red_Square

Jun. 30, 2010

Under rating threshold (show) Would anybody know where to place the code.... _y = Math.random()*200 + 50; It says it at the end of the tutorial but Ia m not sure exactly where to place it.

+ - !

(1)

avatar for veiakas
veiakas

Jun. 11, 2010

Under rating threshold (show) Oh silly me. When I was converting the enemy ship into symbol, I had left unticked the 'Export in frame 1'. Made it all right by choosing 'enemyShip' from library and right-clicking, and properties.

+ - !

(1)

avatar for Cracacter
Cracacter

Jun. 5, 2010

Under rating threshold (show) The ships only appear if i shoot :S Please help! I copied the whole code :S:S

+ - !

(1)

avatar for vojak2
vojak2

May. 5, 2010

Under rating threshold (show) I'm trying to give the ships a vertical speed. I put in the as file "var yspeed" in the "function onLoad()" i typed "yspeed = random(1) - 0.5" in the "function onEnterFrame()" i typed "_y += yspeed;" but the "yspeed" seems to be always the same on every ship, every time i test the swf. Howewer, the "speed" is different every time. Any help on how to fix it?

+ - !

(1)

avatar for Sticker704
Sticker704

Apr. 20, 2010

Under rating threshold (show) If there are no ships appearing, try deleted the enemyship in your library and try again. Worked for me.

+ - !

(1)

avatar for 3nd0fw0r1d
3nd0fw0r1d

Apr. 12, 2010

Under rating threshold (show) o yea, if you are having trouble with "unable to read the class or interface of "Whatever"", MAKE SURE THE FILE YOU SAVE IT AS IS THE SAME NAME AS THE CLASS!!! :3

+ - !

(1)

avatar for kiwik
kiwik

Mar. 4, 2010

Under rating threshold (show) Is working so happy

+ - !

(1)

avatar for Smo77
Smo77

Jul. 14, 2011

Under rating threshold (show) Does anyone know why I keep getting an error message whewn I try to publish it? It says The class or interface 'EnemyShip' could not be loaded..

+ - !

(1)

avatar for Mattafix
Mattafix

Aug. 25, 2011

Under rating threshold (show) If you had the same problem as me, copying the code exactly from the screenshot only to have it result with no enemy ships and no control over your own ship, add an extra '{' bracket to the bottom of the code.

+ - !

(1)

  • add a comment