Under rating threshold (hideshow)
My health bar is not going from right to left when my ship is hit
instead, its going from right to left AND from left to right at the same time.. any clue ?
Under rating threshold (hideshow)
rofloldude, i'm not saying that this is a bad tutorial(of course for you it's sooo good), I only want to show you mistakes in this code.
Under rating threshold (hideshow)
haha xD i sat 2 hours trying to figure out why my game over menu didnt go away in the beginning when i realized it didnt have an instance name :P
Under rating threshold (hideshow)
my health bar still won't work
i think its the _xscale part... i don't get how it's supposed 2 work. can some1 plz xplain 2 me? resetHealth(); IS in my onLoad(){} sect. hlp plz...
Under rating threshold (hideshow)
For whatever reason, adding the gameOverMenu broke my resetScore() and resetHealth() functions; I have to add a "_root.ship." before both, from within Ship.as, to avoid error messages, but neither one is working anymore. I have no idea what went wrong, as they were working perfectly right before adding the newGame() function...... the joys of programming.
Under rating threshold (hideshow)
I can't get the healthbar to work either. Maybe it's because I'm using Adobe Flash CS4 (with AS 2.0)...
I don't understand. the updateScore function is working, but updateHealth isnt updating.
Under rating threshold (hideshow)
thanks for the help comments because i'm making a similar game but with enemies from both sides and no shooting, s i cant just copy all the code either.
PS: How do you change the registration point?
Under rating threshold (hideshow)
For the health bar, if it's shrinking toward the middle, change the registration on the bar instance to the left and not the middle. It will shrink towards wherever the registration point is.
If it's not working at all, that's because you need to call resetHealth(); in your ship's onLoad function.
Under rating threshold (hideshow)
If you're having problems with the health meter, you need to do this: 1) Check the source files from the Shootorial to make sure that the scripts are correct. 2) Click on the health meter on the stage once and make sure that the instance name is "healthMeter" for the movie clip named healthMeter, not healthMeterBar. 3) Click on the healthMeter on the stage twice and make sure that the instance name is "bar" for the movie clip named healthMeterBar. Your health meter should be working by now.
Under rating threshold (hideshow)
yaikes my health bar is working. sorta. instead go to left when losing life, the bar goes shrinking to the middle! and the playagainbutton doesnt work! please help!
Under rating threshold (hideshow)
I cant get my reset button to work, i keep getting an error saying - The class or interface 'gameOverMovie' could not be loaded. any1 got any ideas??
Under rating threshold (hideshow)
took me a few hrs but i did it all and its working good! now its time to start that fire that i been putting off for the last 3 hrs cause of this game lol *shiver*
Under rating threshold (hideshow)
how come every time I make a symbol and put it on the screen the "class or interface _______ could not be loaded" error comes up when i run it?
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)