Games Achievements My Kong Sign In

Comments for Shootorial #5

« Back to Shootorial #5

bitterlove

Oct. 31, 2012

Under rating threshold (show) sorry guys, i have a problem with the " hitTest() " function. I checked the cod a billion time, but everytime my hero ship fires a missile, the bullet appears for a millisec and vanishes, and ANY enemy is destroyed (despite of its "_x" and "_y"). Basically, the missiles are fired and make the enemy explode as soon as they're fired, without phisically hitting it.

+ - !

(0)

KrazyKarasu

Oct. 11, 2012

Under rating threshold (show) Silly me, i put the explosion function in the onEnterFrame function, no wonder it wasn't working

+ - !

(0)

vector1

Sep. 28, 2012

Under rating threshold (show) If you loaded the downloadable source and your missiles won't hit anything, go to Control > Clear Publish Cache and Test Movie.

+ - !

(0)

sthreet300

Sep. 26, 2012

Under rating threshold (show) for some reason the this.hitTest(_root.ship) if statement won't return true... it is in the onEnterFrame function... anyone have any idea what is going wrong?

+ - !

(0)

Filippo2bt

Jul. 16, 2012

Under rating threshold (show) Thank you kongregate! Hey guys this is the game half completed I didnt have time to completed correctly but if you guy want to check it out this is the link: http://www.kongregate.com/games/Filippo2bt/spaceknight the art was also made by me thats why it took me a little more time and also please any help comment. Enjoy! :)

+ - !

(0)

WindDragonLord

Mar. 29, 2012

Under rating threshold (show) @EphY You have to right-click open in new tab.

+ - !

(0)

Jonasinjo

Jan. 07, 2012

Under rating threshold (show) Please help, the enemy missiles spawn move about 10 pxles then freeze and disapper, and the hero ships missiles dosn't blow up the enemy ship, I have tried everything, but nothing works, I also have replacedthe original classes whit the classes from the download.

+ - !

(0)

juggernaut25

Dec. 22, 2011

Under rating threshold (show) I cannot download the explosion

+ - !

(0)

Dulran

Nov. 05, 2011

Under rating threshold (show) @SlayerOfPersians I almost had that problem... I accidentally put it in in a way that my second ship launching code was completely separate from the first, and was launching one each frame... I caught on when I was getting 61 enemies every two seconds instead of 1.

+ - !

(0)

sheepness

Oct. 23, 2011

Under rating threshold (show) @mailbox : maybe you should make enemy ship removed from the array on the explode function

+ - !

(0)

zeth415

Oct. 15, 2011

Under rating threshold (show) solved... CAPS problem u_u

+ - !

(0)

zeth415

Oct. 15, 2011

Under rating threshold (show) I'm using flash CS3 with action script 2

+ - !

(0)

zeth415

Oct. 15, 2011

Under rating threshold (show) Hi guys. When I try to use ._currentFrame and ._totalFrames there is an error that reads: "there is no property with this name". Help plz

+ - !

(0)

Gloogloos

Aug. 13, 2011

Under rating threshold (show) Got another question, im not using the downloads with this, im making all that myself so i can learn it too, does anyone know a good animation tutorial, i looked on the web but cant find anything that seems to help/work

+ - !

(0)

Gloogloos

Aug. 13, 2011

Under rating threshold (show) nvm got it, there was a layer that i missed and i deleted it and its all good now, thank god

+ - !

(0)

Gloogloos

Aug. 13, 2011

Under rating threshold (show) well i tried this and i got to the point with the explosion and now my game just flashes every few seconds, its just white and then for like 1 frame the game shows, and then goes white again, i deleted everything i had added before this and it still does it, someone PLEASE help me, ive been working for the whole day on this and i really dont want to have to start over only to make another damn mistake

+ - !

(0)

yngwiedmb

Aug. 10, 2011

Under rating threshold (show) @jumpking55, that's because we are trying to access to a variable array which if you remember we have it defined in the ship. it's very wise to store it there because always will be the ship instance before any missile or enemy, so we can assure that the array enemies exists. Notice that is like a path, you can say: "from the root timeline (the main one), look for the ship, then inside it, give me the array enemies". I hope this helped. :P

+ - !

(0)

Lunapanther

Aug. 07, 2011

Under rating threshold (show) My missiles are only hitting about half of the enemies. For the other half they're just passing right past them.

+ - !

(0)

yngwiedmb

Aug. 03, 2011

Under rating threshold (show) I don't know why the for..in loop is still not working for me... the instance's name is zhip, I added enemies.push(enemy); in the class Ship right after creating a new enemy (syntax test is ok). But in the Missile class on the very first line of the loop for(var i in _root.zhip.enemies) it founds and error, says class definition doesn't allow this declaration. Please help! =(

+ - !

(0)

felix2020

Jun. 28, 2011

Under rating threshold (show) @wowguy102 @Azer1652 Make sure the instance name of your hero ship is different than its class name, and make sure that the code if(this.hitTest(_root.ship)) instead of putting (_root.ship)), replace "ship" with the instance name (make sure casing is correct, too)

+ - !

(0)

Azer1652

Jun. 27, 2011

Under rating threshold (show) stuck on page 4, the enemies won't disseapear. I'm using CS5.5. Can anyone help me??

+ - !

(0)

kinxer

Jun. 20, 2011

Under rating threshold (show) @wowguy102 Make sure you typed in the contents of the explode() function correctly.

+ - !

(0)

neilshah99

Jun. 08, 2011

Under rating threshold (show) when i shoot the enemies, some of them dont even get affected, but when i shoot some of the others, they get shot. Can someone plzhelp? I literally copied the code into all my files, annd nothing got affected. Plz help!!!

+ - !

(0)

Cacuu

May. 31, 2011

Under rating threshold (show) nvm i did it. lawl. evil missplaced } D:

+ - !

(0)

Twizler09

May. 18, 2011

Under rating threshold (show) I NEED HELP!!!! when i click on the download for the sources nothing comes up and i want to advance on my game so can someone tell me a link or a way to fix this problem

+ - !

(0)

Lewenlan

Apr. 16, 2011

Under rating threshold (show) I need help, i just finish the tutorial # 5 and now my ship can't move no more. With the thing I added. Only the background still working (Defile). Anyone got a idea why my game isn't working well now?

+ - !

(0)

hunterswapras

Apr. 11, 2011

Under rating threshold (show) ok got ot!!

+ - !

(0)

hunterswapras

Apr. 11, 2011

Under rating threshold (show) ok i downloaded the source file, extracted it, but i don't find the explosion clip. Ya, it says from the fla file, but i got no fla file. Please help, i'm loving this thing and now i'm stuck here!

+ - !

(0)

Introversity

Apr. 11, 2011

Under rating threshold (show) gavin_rox_3 : re-read part 6, that's the bit that deletes the explosion on its last frame.

+ - !

(0)

ilikeleprechauns

Mar. 23, 2011

Under rating threshold (show) Wait... fixed it.

+ - !

(0)

ilikeleprechauns

Mar. 23, 2011

Under rating threshold (show) Yikes! Something is definitely wrong with mine. It started putting out enemies every frame.

+ - !

(0)

DrOstler

Mar. 23, 2011

Under rating threshold (show) Hit detection doesn't work. The enemies just go straight through me.

+ - !

(0)

numbus

Mar. 13, 2011

Under rating threshold (show) My enemy ships are shooting missiles! My only problem is that they stay in place and don't move...

+ - !

(0)

numbus

Mar. 13, 2011

Under rating threshold (show) I made my explosion really really really big and didn't make it a clip so it only lasted for one frame. It adds a nice touch, whenever you hit an enemy it looks like an explosive balloon bursting. Try it.

+ - !

(0)

numbus

Mar. 13, 2011

Under rating threshold (show) Link on page one isn't working. I'm not sure if it's just me or not (probably is).

+ - !

(0)

cocktipus

Mar. 04, 2011

Under rating threshold (show) Morning. I have problem in step 4. The Enemy ship stopped arriving to frame and the Hero ship cannot move or shot. (But the background still moving...) anyone know how to solve it?

+ - !

(0)

Fultoa

Mar. 04, 2011

Under rating threshold (show) I fixed my problem by making sure that the X and Y coordinates of the symbols are the same, and to make sure to have the... explosion._x = _x; explosion._y = _y; written out correctly.

+ - !

(0)

Fultoa

Mar. 04, 2011

Under rating threshold (show) Help, I'm on Step 7 when you add the explosion animation to your enemy ship, but when I run into it, the explosion happens left and down from where the actual enemy is. What should I do?

+ - !

(0)

GK1109

Feb. 25, 2011

Under rating threshold (show) Using CS5, I was able to copy the explosion animation directly out of their .fla and already have everything linked up to my Explosion class Just thought I'd share this information

+ - !

(0)

dandan125

Feb. 21, 2011

Under rating threshold (show) when i change the istance name to Ship te game stops working

+ - !

(0)

daemon1234

Dec. 26, 2010

Under rating threshold (show) either that or the explode() function

+ - !

(0)

cypherstim

Nov. 10, 2010

Under rating threshold (show) the collision detection in my game works, but only on the ships. the missiles just fly by without any reaction. my code is this: class Missile extends MovieClip{var speed;function onLoad(){ speed = 20;}function onEnterFrame(){_x += speed;for(var i in _root.ship.enemies){if(this.hitTest( _root.ship.enemies[i] ) ){this.removeMovieClip();_root.ship.enemies[i].explode();}}if(_x > 600){this.removeMovieClip();} }} Is anything wrong with it?

+ - !

(0)

NinjaPirate426

Oct. 28, 2010

Under rating threshold (show) Ok, I fixed my earlier problem. But now my missiles wont hit the enemy. can someone please tell me how to fix this. My code is the exact same as the tutorials.

+ - !

(0)

NinjaPirate426

Oct. 27, 2010

Under rating threshold (show) Ok i figured out that all my functions stop working when i change my ships instance name to "Ship". Can someone tell me why?

+ - !

(0)

NinjaPirate426

Oct. 27, 2010

Under rating threshold (show) Ok, this tutorial has been working really well for me. And I dont think its this tutorials fault, but all my stuff just stopped working. Before this one my ship was flying and shooting, and enemies were being randomly generated. But after I added the collision detection everything stopped working. The only thing that does still work is my background. can anyone help me out please?

+ - !

(0)

hastingsfc12

Oct. 27, 2010

Under rating threshold (show) well added in the code savede it checked it but the collision wont work :/

+ - !

(0)

fatcatcog

Aug. 12, 2010

Under rating threshold (show) It says that _root.ship isnt valid

+ - !

(0)

Deathisfury

Aug. 11, 2010

Under rating threshold (show) Nvm, I got it to work with AlmightyGERM's advice... I had to make the instance name differ from the class name. Strange world o.o Maybe it's because I'm using cs5 lol

+ - !

(0)

Deathisfury

Aug. 11, 2010

Under rating threshold (show) When I add the instance name to the ship everything stops working except my background. Many other people having the same problem but those many other people have many different solutions :(

+ - !

(0)

plomhaed

Jul. 14, 2010

Under rating threshold (show) Can someone upload a pic or txt file containing what the ship.as should look like? i somehow messes mine up, been checking it for the past 30 minutes and can;t find anything... :/

+ - !

(0)

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