Under rating threshold (hideshow)
for all with health bar issues read this: http://tinyurl.com/7xrwzz4
you can still use the objects names from the tutorial just make sure you cut/paste and make a new layer like the book says.
Under rating threshold (hideshow)
_root.gameOverMenu.playAgainButton.onPress = function()
{
_root.ship.newGame();
}
The above code isn't even attempted at being explained. Please can someone help
Under rating threshold (hideshow)
I had my score just showing zeros all the time. The problem was with the embed in the properties of scoreText, you actually need to click the little box before the numerals (0..9). There will be a V in it. Thought you just had to select it and click ok, but you need to check it of in the list. If you dont check numerals, it can only show the characters that you have already typed in the box, that is why typing 1234567890 in the box is also a solution.
Under rating threshold (hideshow)
I cannot get my gameOverMenu to disapear and reapear when I die. It is always there. I have copied all of the source code to do it and it didn't work and then I tried using there gameover menu and that didn't work either!
Under rating threshold (hideshow)
They said Shootorial 5 was the hardest, not by much apparently, i cant get my score NOR my health to work, ive gone through around 5 pages of comments to find a solution and ive tried almost everything, ive redone them multiple times and still nothing, score just goes to 0 (so the reset works) but doesnt increase at all, and the health does nothing
Under rating threshold (hideshow)
I checked and all my files are the same as the ones downloaded from the source file, I don't know what's wrong please help D:!!!!
Under rating threshold (hideshow)
joeharner is right, but i think i found a easier way to do it!
just add the code _root.ship.enemies.splice(i,1) in missile class after the explode() function.
Under rating threshold (hideshow)
For the health meter try putting health = 100 in the onload function. Also the healthmeter and healthmeterbar in the library should have an instance name healthmeter. The see the actual bar instance name right click healthmeter and click edit. Then click on the health bar on the screen. Finally click on the properties panel on the right and you should see it.
Also on another note; no matter what I do I can make my ship become not visible can someone help me? I used: this._visible = false; in the explode function and everything else works but this.
Under rating threshold (hideshow)
If you are drawing your own health meter, you need to make the middle layer, the bar, a new movie clip in you library and then just pull it from the library into the health meter while you are drawing it, and give it "bar" for instance name. The border and background layer of the health meter are just normal pictures. Also, be sure to give the health meter the instance name "healthMeter".
Under rating threshold (hideshow)
There needs to be a "resetHealth();" in the onLoad function for health bar to work properly. So your onLoad Function should be:
function onLoad()
{
velocity = 10;
shootLimiter = 0;
enemyTimer = 0;
enemies = [];
resetScore();
resetHealth(); <- Here! :)
}
Under rating threshold (hideshow)
I don't know about other people but I couldn't get my score to show except for blank, 0, and 00. Somehow I fixed it by typing 0123456789 in the text box. I hope this helps someone...
Under rating threshold (hideshow)
The game over menu is not working for me very well. Instead of removing the game over menu at the beginning, it removes my scrolling background image instead, and then restores the image when the game over menu is supposed to come up in the end. Other then the play again button not working in the end, everything else is working fine right now.
Under rating threshold (hideshow)
How do I get my Game Over Menu to disappear once I lose a game? I ran a test, purposely lost to check everything was working, and when I click the Play Again button, it resets the game, but my gameOverMenu stays there.
Under rating threshold (hideshow)
general comando you will have to get the help by looking at your game here in shootorials nobody helps except other people. you rarely find the correct person.
Under rating threshold (hideshow)
256 levels of recursion were exceeded in one action list.
This is probably an infinite loop.
Further execution of actions has been disabled in this movie.
WTF?!?!?!!??!?!?!?!
Under rating threshold (hideshow)
im usin CS4, my dam health bar doesn't move, i tried usin it in my game im makin, nope. copied everythin the tutorial said and copied the code in case.. Nope. it doesn;t freakin work
Under rating threshold (hideshow)
@ Babaorum
He didnt explaine these points because they are very normal to programmers. The == is used to show a conditional like are these 2 objects equal rather than a single = which is an assignment. As for the other part "enemies[i].explode()" the explode() can be used since the variable enemies[i] is an instance of the class EnemyShip and because of this it has all functions associated with it through the "." symbol.
Under rating threshold (hideshow)
I need help. When I try to load up my game I get these two messages.
"The class or interface 'bar' could not be loaded."
"The class or interface 'healthMeter' could not be loaded."
I don't understand why these error messages are appearing. My health meter doesn't work. Please help.
Under rating threshold (hideshow)
This tutorial is really badly in need of some clean up. I mean look at the picture on the 4th page. they have 4 layers yet they never told you to make 2 new ones. and i can't get the dang health bar to work!!
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)
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)
Can someone help. I used all the codes for he score and health bar, but when the health bar decreases, both sides of the bar decrease instead of just the right side and for some reason when I koll an enemy, my score won't increase. Help plz!
Under rating threshold (hideshow)
Fixed my health bar. Added resetHealth(); to onLoad, changed _xscale to _width in resetHealth, changed resetHealth amounts to 55, and changed damage amount in EnemyMissile to 5. Hope this helps!
Under rating threshold (hideshow)
Argh!!! KEEP GETTING AN ERROR MESSAGE! "The class or interface 'gameOverMenu' could not be loaded." on the previews it shows up as usual but play again link doesn't work. apparantly its to do with symbol=gameOverMenu, layer=bg, frame=1, line 1. i dont get it cos i only got a rectangle on that layer
Under rating threshold (hideshow)
I figured it out. If you are having font trouble, delete all 'text _' s in the library, then hit embed on your text, and click the CHECK BOX by the numerals 1-9.
Under rating threshold (hideshow)
I'm getting the problem "There is not property with the name score". I pretty sure it is because I am putting the following codes in the wrong spot.... function updateScore(points)
{
score += points;
_root.scoreText.text = score;
} .......and....... _root.ship.updateScore(50); if somebody could send me a private message ti exactly where I am supposed to place this code I would greatly appreciate it.
Under rating threshold (hideshow)
so one of the problems i had with the health bar not moving was i didnt put the
reset health; in the onLoad function
that may solve some probs