Under rating threshold (hideshow)
i knew something is wrong that's why i can't get this one to work
i double entered function updateHealth(points){health += points;if(health < 1)
if folks are having problems try downloading the source files then compare bothto see the difference
Under rating threshold (hideshow)
Hey guys if you're having a problem with your play again button, here is the right syntax for the code. Kongregate decided to f**k it all up. YOU DON'T NEED THE BRACKETS CALLING ON THE FUNCTION:
_root.gameOverMenu.playAgainButton.onPress = function newGame();
You call the function from inside the function, on the button press. You don't need the brackets to call the function from there. Sometimes Kong is stupid as hell.
Under rating threshold (hideshow)
I love these tutorials. I do not actually make that game but it is great that when I just dont know how to do anything, I can just look into tutorial where it is explained. GJ kongregate.
Under rating threshold (hideshow)
i dont know why but it wont work if i use healthMeter as instance name.
i tried to remove a letter and it works.. using bar as instance doesnt give me problem
can someone tell me possible reasons why i cant make it work with instance name healthMeter but works if i change it? btw im using Adobe Flash CS5.5 Pro
Under rating threshold (hideshow)
@iGreenPuffle, chunygami, anyone: When you make health = 100 that fixed the problem for me too. Is it because health var had not been defined yet as a var type? Does making it 100 for some reason tell Flash what data type to make it? Just wondering why that fixed it for future troubleshooting.
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)
ATTENTION! If your score isn't showing up at all despite you checking the instructions and banging your head against the wall several dozen times, check the color of the text in the text box. Even if it's a color that SHOULD show up, look at Alpha. Is it 0%? This is why it's invisible, alpha is the transparency. I don't know why, but the default value of alpha for me is 0%, which means it's invisible, set it to 100% and your problem will be solved. Hope this helps someone else.
Under rating threshold (hideshow)
when you make your own healthmeter, make sure when you convert the bar to a movieclip, that the registration point is on the middle-lower point.
Under rating threshold (hideshow)
Hey, for those of you who can't see your score because it's blank. Click on the text box for the score and go to the properties tab. Make sure the font color is black. Mine was on white and I couldn't see the score and thought it was a programming error. :/ fail
Under rating threshold (hideshow)
big problem... i can't get my gameOverMenu to dissapear and for some reason the onEnterFrame function on my ship class isn't working... any ideas?
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)
went on to the next shootorial, but then noticed that after i died everything went normal until i hit play again, after that everytime i hit spacebar (to shoot), it runs the play again function, i get reset, i think whats happening is that because i hit play again, the button is still selected even though its invisible and everytime i hit space it presses it again, so i get reset, does anyone know how to disable the button, i tried by setting it to enabled = false until the game over appeared but it doesnt work, am i missing something really obvious
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)
Like everyone else, I am also having problems with the health bar. After ten hits from enemy ships and missiles, my ship will explode on cue and then the game over menu works like a charm. The only problem is the fact that the health meter image never changes. Does anybody have any other suggestions to help solve this issue?
Under rating threshold (hideshow)
I figured out the problem and fixed it but now my health bar wont work I tried what mars83 posted and what iGreenPuffle92 posted and neither worked I tried them together and seperate and I can still play the game but the health bar won't work and its instance name is healthMeter. my health bar is copy posted from the source so I don't know what might be wrong?????
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)
Everything is perfect except the health meter doesn't move, I still get the game over thing, but it just doesn't move, it stays green, can anyone tell me how to fix this?
Under rating threshold (hideshow)
uh I can't get the score to work a series of errors in coding had showed up when I pasted the code on pg3 over the root update to the ship class so when I thought I had fixed those errors (actionscrpt shut up about them) I tested and shot down an enemy the game flipped out and said too much stuff was happening all at once and it immediately gave my ship a 12600 score?????????
Under rating threshold (hideshow)
DougR1, if you still haven't figured out why your bar was decreasing from both directions. i had the same problem, but i fixed it. double click inside the healthbar, then doubleclick the bar movie clip, and move the bar so that the little cross is along the left side of the bar. go back to the health meter, realign, and problem solved :)
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)
I have my code exact as theirs. i used their gameovermenu and playagain button. The game so far works but once i die, the gameovermenu's playagain button does not reset the game. the computer recognizes it as a button, but clicking it does not reset anything. please help.
Under rating threshold (hideshow)
lol i noticed why, my fault was another bracket was misplaced.. lol
i am having fun at this really a great tut, taught me more than i should know. i even added a customized health bar with numbers niyahaha 5/5
Under rating threshold (hideshow)
can anyone help? when i shoot/hit the enemy ship it gives me this 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. its not in the error section…
Under rating threshold (hideshow)
after quite some time of 30 minute... I learned that the function scores for the ship class is to be placed above all other functions... wonder why? :O
Under rating threshold (hideshow)
For anyone who has hunterswapras problem, that mean that you are calling a function that is calling another function (which is good programming) but one of two things is happening:
1) What you are trying to do goes through so many functions that the 'recursion depth' is exceeded. This just means that you can't call any more functions inside of what you are already running.
2) You have a function that calls a function that calls the first function, which re-calls the second function, which re-calls the first function, ect. . . and you have no terminating condition.
Under rating threshold (hideshow)
Hey everyone. I had a broken score meter for a while. However, when I put in '1234567890' it fixed the problem. So, if your score is just alternating zeros, try that.
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)
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.
WHAT'S THIS?
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)
guys, kongregate forgot this in their last tutorial, but before any time you call removeMovieClip() inside your enemy class, you need to remove it from your array of enemies. Otherwise, bullets will continue to try running checks on the nonexistant objects, and the array will just grow longer and longer.
i created an index variable inside the enemy class that I update whenever things are removed from the array and use before .removeMovieClip() like this:
_root.(array name).splice(index, 1);
Under rating threshold (hideshow)
Okay I got an error telling me there's no property with the name health. This obviously means that there is nothing under the name health. How do I fix this? - Meaning: What do I name Health?
Under rating threshold (hideshow)
I don't know why it does this but my ship almost never hits the enemy. I'm hitting it straight in the middle and have to hit it about five or six times before it dies and by then it's hit me
Under rating threshold (hideshow)
(of course I meant removing this.removeMovieClip() from your shot. If you remove the collision against the enemy FROM the enemy instead of a piercing shot, you'll have enemies playing in god mode. xD)