Games Achievements My Kong Sign In

Comments for Shootorial #6

« Back to Shootorial #6

aggixx

Nov. 28, 2008

Under rating threshold (show) I solved the problem of the health bar not working by giving the healthmeter an instance name 'healthMeter', and setting it to 100 in the onload section of the ship class.

+ - !

(0)

Silencian

Nov. 28, 2008

Under rating threshold (show) I've downloaded the source, and the health bar isn't there. WHAT THE HELL?

+ - !

(0)

Silencian

Nov. 28, 2008

Under rating threshold (show) Right, that's fixed. The only problem is it now won't scale. -.-

+ - !

(0)

Silencian

Nov. 28, 2008

Under rating threshold (show) If you make a health meter into a movie clip, it needs a class or there's an error. If it isn't a movie clip, you can't add an instance name. If you can't add an instance name, it doesn't work. I give it a class, and guess what? The stupid thing won't scale.

+ - !

(0)

Darkone557

Nov. 26, 2008

Under rating threshold (show) Never mind. I figured it out.

+ - !

(0)

Darkone557

Nov. 26, 2008

Under rating threshold (show) I'm making my own health meter and i can't figure out how to make it 'scaled'. Any help?

+ - !

(0)

slain4ever

Nov. 26, 2008

Under rating threshold (show) thx, my heathmeter didnt have an instance name, giving it one foxed everything

+ - !

(0)

Zoombus

Nov. 26, 2008

Under rating threshold (show) thanks Vancano, that's just what I needed :)

+ - !

(0)

tahkratos

Nov. 26, 2008

Under rating threshold (show) lol maybe i cant see it but theres something missing on the tutorial. u have to write var score; or ull get error in every line u use score

+ - !

(0)

Bonabopn

Nov. 26, 2008

Under rating threshold (show) I read that bit about the "health = 100" on the onload. It still didn't work. I've also given the health bit a name.

+ - !

(0)

Vancano

Nov. 26, 2008

Under rating threshold (show) The main problem I had with the health bar not updating was that I had not set health to 100 in the 'On Load' function at the beginning of the Ship class. Try that and see if the bar will update. Also check you have all of the names correct and that the coloured bit in the health bar has been given a name.

+ - !

(0)

slain4ever

Nov. 26, 2008

Under rating threshold (show) Hey need someones help; the only thing that doesnt work is the health bar doesnt change its size (you can still die though)

+ - !

(0)

judacris

Nov. 26, 2008

Under rating threshold (show) oh i missed the if conditional on page 12. never mind! check page 12, people!

+ - !

(0)

judacris

Nov. 26, 2008

Under rating threshold (show) hmm... I got everything working right, but new enemies still zip past my screen after they explode with the game over screen.

+ - !

(0)

Bonabopn

Nov. 25, 2008

Under rating threshold (show) My health meter and score isn't working, no errors, they just don't update. :/ They both have instance names.

+ - !

(0)

Vancano

Nov. 24, 2008

Under rating threshold (show) I dont think that should matter because when your bar reaches 0 I think the code will bring up the game over menu. At least I imagaine thats what will happen.

+ - !

(0)

cloudcavalier

Nov. 24, 2008

Under rating threshold (show) Thanks Vancano— the only thing I have to fix now is my health bar extending too far to the left after a number of hits...

+ - !

(0)

Vancano

Nov. 24, 2008

Under rating threshold (show) Just read through all of the old comments. PooandWee solved the issue for me! On Load needs to have health=100 in it. Works fine now!

+ - !

(0)

Vancano

Nov. 24, 2008

Under rating threshold (show) Purelymad I think the answer to your question is the same as with Cloud's. By listing the class name in the properties page flash is trying to find a class with that name, so deleting it should solve the issue. I hope.

+ - !

(0)

Vancano

Nov. 24, 2008

Under rating threshold (show) Cloud: "the class or interface "healthmeter" could not be loaded" any ideas I had this one, just figured it out today. Go into the properties and just delete the name in the 'class' box. The reason it can not load the class is because there is no class for the health bar. I'm just struggling to get my healbar to update when one of the enemy ship's hits/shoots mine.

+ - !

(0)

runthegambit

Nov. 23, 2008

Under rating threshold (show) alright you officially lost me. I wish they would show what the ship class is suppose to look like!

+ - !

(0)

Quorong

Nov. 22, 2008

Under rating threshold (show) I've done up to Shootorial #6 and it works fine except my Game over menu wont work when I die. Can anyone explain how to set the gameovermenu up or how to make one yourself that works?

+ - !

(-1)

Purelymad99

Nov. 22, 2008

Under rating threshold (show) It's telling me that the health bar + game over screen movie clips cannot be loaded, but they work anyway. Something I should be concerned about?

+ - !

(0)

cloudcavalier

Nov. 22, 2008

Under rating threshold (show) Make sure you have the right instance name (like 'scoretext' or something) correct

+ - !

(0)

Nick1Joy

Nov. 22, 2008

Under rating threshold (show) i've checked all of that 'cloud' and it is still not working

+ - !

(0)

cloudcavalier

Nov. 22, 2008

Under rating threshold (show) Neither my health meter or bar will load... "the class or interface "healthmeter" could not be loaded" any ideas?

+ - !

(0)

cloudcavalier

Nov. 22, 2008

Under rating threshold (show) For the score thing: Make sure there is NOTHING in the box in the flash file (no numbers, it will put a zero there automatically). Also, check all of the names you used for the scorebox again (i.e. using the root 'ship' instance name you assigned)

+ - !

(0)

Nick1Joy

Nov. 22, 2008

Under rating threshold (show) The points bar doesn't update, how do i make it update?

+ - !

(0)

DeadMovieStar

Nov. 21, 2008

Under rating threshold (show) I keep getting an error method that says: There is no method with the name 'resetScore'. At first I thought that would be fixed later in the tutorial but alas it does not. Anyway, what does this error message mean and how could I possibly fix it?

+ - !

(0)

ttthebest

Nov. 19, 2008

Under rating threshold (show) health not working.. what kinda mistake did i do ?

+ - !

(0)

hastingsfc

Nov. 19, 2008

Under rating threshold (show) scores work perfectly now but my bad fortune has struck again! now i cant make a working health bar and im not even sure if my health meter is made correctly!

+ - !

(0)

Shezz

Nov. 19, 2008

Under rating threshold (show) I got lost with this step, socre is working fine, but my healtbar is f*cked up... Now i'm geting syntx errors of my gameovermenu, and healthmeter and bar that couldnt be loaded etc.. please :D someone HELPME

+ - !

(0)

CodeGuy

Nov. 18, 2008

Under rating threshold (show) Oh, I get it now. I don't change the origin at all, I just change everything else. Thanks.

+ - !

(0)

clemsonfan53089

Nov. 17, 2008

Under rating threshold (show) whoops. almost forgot. add it to onEnterFrame in your ship

+ - !

(0)

clemsonfan53089

Nov. 17, 2008

Under rating threshold (show) @nikitarama you could do what i did to make the enemies stop coming. just add if(health<1) {--timer for the powerups--=--any number higher then the timer--;}

+ - !

(0)

stickmakerman

Nov. 16, 2008

Under rating threshold (show) i still havce problem with score, i cant fix it, i still follow the tutorial!!!!!!!!

+ - !

(0)

hastingsfc

Nov. 16, 2008

Under rating threshold (show) it really doesnt like my reset score coding.. what the hell is wrong

+ - !

(0)

clemsonfan53089

Nov. 15, 2008

Under rating threshold (show) I agree with TwinKite. they don't explain it at all, and i can't find it in the download.

+ - !

(0)

CrimZen

Nov. 15, 2008

Under rating threshold (show) I fu**ed up in this step, got syntax errors and suck xd Try again tomorrow :P

+ - !

(0)

bannanman

Nov. 15, 2008

Under rating threshold (show) OMG! HOLY FRICK I SOLVED IT! AND I ONLY HAD TO ADD THE VISIBILITY VARIABLE!! WHAT THE- the rest of this comment was removed for insane amounts of swearing and cussing and hatred-

+ - !

(-1)

bannanman

Nov. 15, 2008

Under rating threshold (show) How come I can't frikin make my guy dissapear? Did the shootorial leave out a piece of code? I put all the correct functions for the explode and added explode() to my update health function but It doesn't explode.

+ - !

(0)

CodeGuy

Nov. 14, 2008

Under rating threshold (show) schredy, if I drag the bar, then the whole bar moves instead of just the middle.

+ - !

(0)

nikitarama

Nov. 14, 2008

Under rating threshold (show) how do you remove the powerups from the stage when the ship explodes? because mine don't and i can still rack up points and regenerate health once i'm no longer visible (if there were still powerups once i exploded)

+ - !

(0)

hastingsfc

Nov. 14, 2008

Under rating threshold (show) when i enter the following code; "function updateScore(points) { score += points; _root.scoreText.text = score; "}" There is no property with the name 'score'." and "There is no property with the name 'score'."

+ - !

(0)

schredy

Nov. 14, 2008

Under rating threshold (show) @ CodeGuy: go to your healthmeter, keep dubble-clicking on it until you are at the healthmeterbar. then, drag the bar until the little cross in the middle is at the upper left corner of the bar. (hope you understand what i just said...)

+ - !

(0)

darkthing

Nov. 12, 2008

Under rating threshold (show) To make the health bar scale properly but without testing it myself (I am about to try) add the following to the update health function: _root.healthMeter.bar._x += ((points / 2) * 1.5) Replace 1.5 with one tenth of the number of pixels in your health bar; that will only work for me.

+ - !

(0)

CodeGuy

Nov. 12, 2008

Under rating threshold (show) Forestviolence, I did that when I made my health meter, but scaling doesn't work right. Any idea how to make it scale from the left instead of from the center? In the health meter in the exmple, the anchor point on the bar is on the left instead of the center, but I don't know how to do that.

+ - !

(-1)

embracingchaos

Nov. 12, 2008

Under rating threshold (show) I have very limited programming knowledge... (HS class 10 years ago C++), after troubleshooting 5 teams each shootorial, it's working. thanks for the motivating shootorials to get me back into it.

+ - !

(0)

doodlebugged

Nov. 12, 2008

Under rating threshold (show) what if you wanted to add an animated intro for the game over screen? how to get it to freeze at the last frame of animation, for you and until you click the play again button?

+ - !

(0)

Forestviolence

Nov. 12, 2008

Under rating threshold (show) to make your own healtMeter: right-click on the library select "new symbol" name it "healtMeter" make 3 layers. top layer: border middle layer: bar. (selection tool, right-click, "convert to symbol", movie clip, name: "bar" and give it the instance name "bar") bottom layer: the backdrop color. then you done ^^

+ - !

(0)

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