Under rating threshold (hideshow)
I wish all Flash Tutorials could be this clear and, for that matter, glitchless. Please, make other series of tutorials like Platformorials, or something... (I know the name is not that great).
Under rating threshold (hideshow)
You might have the source files from the last shootorial, here's the link for this one's source: http://chat.kongregate.com/gamez/0002/6394/live/assets/source_files.zip
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
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
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
Hey need someones help;
the only thing that doesnt work is the health bar doesnt change its size (you can still die though)
Under rating threshold (hideshow)
hmm... I got everything working right, but new enemies still zip past my screen after they explode with the game over screen.
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
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...
Under rating threshold (hideshow)
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!
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
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.
Under rating threshold (hideshow)
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?
Under rating threshold (hideshow)
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?
Under rating threshold (hideshow)
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)
Under rating threshold (hideshow)
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?
Under rating threshold (hideshow)
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!
Under rating threshold (hideshow)
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
Under rating threshold (hideshow)
@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--;}
Under rating threshold (hideshow)
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-
Under rating threshold (hideshow)
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.