Under rating threshold (hideshow)
Health meter fix:
on scene 1
click on the health meter thing
then on the bottom give it am instance name of:
healthMeter
that should do the trick
Under rating threshold (hideshow)
Put "health = 100;" under your onload function in the ship class. (This was just for clarification. Its for those whose health meter isnt going down.)
Under rating threshold (hideshow)
FIX FOR HEALTH METER NOT DOING ANYTHING. The tutorial doesnt tell you to add "health = 100;" under your onload function. I discovered this by actually just going through the code and playing out what is happening in my head and I realized the game was never being told what the health is supposed to be at in the first place.
Under rating threshold (hideshow)
Nevermind. I added them to the timeline and still have the same problem. I have literally tried everything I can think of. All of my code is correct and in the proper spot. I have literally gone over it at least 30 times. I can only suspect that the copied health meter is not working properly or I havent copied it over correctly.
If anybody has any ideas I would love to hear them.
Under rating threshold (hideshow)
Ok, if I only have the ship and background layers on my timeline, could that be my problem? I notice on the completed game they also have a health, points and game over layer on top of the ship and background layer. I dont remember ever having to create a new layer for anything. My points thing works fine and its not on there so I dont think this is a must have but I just wanted to check because I still cant get the health meter to go down when hit by a ship or a missile.
Under rating threshold (hideshow)
funnyruler, I am interested in how you fixed it?
I have all the code proper, all spelling correct. I copied over the health thing like instructed. It just does not update.
Under rating threshold (hideshow)
plz help me. i want the ship to be removed when it explodes not just make it invisible. this.removeMovieClip?? where would i put it and what do i have to do
also i would like it so that it goes to frame (3) when the ship explodes.
Under rating threshold (hideshow)
can someone help me because my healthbar won't work i've checked everything i could think of and it stil doesn't work
Under rating threshold (hideshow)
can someone plz help me...i want the ship to disappear when it explodes not just make it invisible. this.removeMovieClip?? where would i put it and what do i have to do
Under rating threshold (hideshow)
the -40 will let your missile go backwards when you launch it, the +... will make your missile go faster in time (when i tested it, i used +5)
Under rating threshold (hideshow)
@|eragon|: create a new var (for exaple add "var mSpeed") and add it to your Missile-class. now, add "mSpeed = -40;" to your onLoad()-function, change in your onEnterFrame()-function: "_x += speed + mSpeed;" and add "mSpeed += ..." to your onEnterFrame()-function.
Under rating threshold (hideshow)
two glithches when u die and press play again u appear where u died also when u die you get points for other ships on screen that blow up
Under rating threshold (hideshow)
I was wondering if there was anyway to have the missile speed be dependent on how long it's been in existence (in frames). I wanted to simulate something like rockets.
What I was thinking of was having the missile speed be -5 + t(in frames) where t is how many frames the missile has been on the screen, but I can't get the script to work. Any suggestions? Maybe a onload function with {speed + 1;}?
Under rating threshold (hideshow)
All You Have To Do Is Follow The Tutorial Exactly, How Come People Are Having Trouble? The Usual Hard Part Is When You Try To Code Yourself
Under rating threshold (hideshow)
for those with HealthBar issues:
Make sure the MovieClip inside of healthMeter has the Instance Name of bar
Also make sure that healthMeter is the Instance Name of the actual Graphic(Movie Clip).
Under rating threshold (hideshow)
i got a problem with the health bar too, ive tried putting the two functions into the on load and on enter frame but the health bar wont go down when im hit
Under rating threshold (hideshow)
@btownballer2k5: i think you mean put "resetHealth();" in your onLoad() function (class Ship) (in your onEnterFrame() function, your health would be 100 all the time!)