Welp, my health bar isnt working, heres the low down.
I made the healthMeter movie clip, a black empty rectangle, everything named correctly and whatnot. Then inside on, on a different layer, made healthMeterBar, a green rectangle, with an instance name of “bar”, everything else named correctly. Like it said in the previous threads, I did not tick “Export for AS”.
in my Ship.as under the onLoad() function I set health = 100; and created var health.
then in the enemymissile.as, this nice little snippet.
_x += speed;
However, my health bar still refuses to to decrease when hit by a missile, under the hitTest I also told it to trace “banana boat” however that was not put into the output section when a missle hit, meaning that code is not connecting at all.
Halp, here is where you can download all of my files and game, I hope someone can help, its a project for school and Ive been breaking my balls to fix this problem.