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)
Please help! My score won't show up! I shoot an enemy, and the score either changes blank, 0 or 00. Help me!
And how do you make a game over menu?
Under rating threshold (hideshow)
I'm using CS3. I followed the tutorial up to and including page 4.
There is no method with the name 'resetScore'.
Great, because I know what that means. -_-
Under rating threshold (hideshow)
Maybe it's exclusive to Cs5 but I have to make a method for EVERY SINGLE FUNCTION. In other words, (because I hope I'm not the only one who still doesn't understand all this programmer lingo), for everywhere that it says "Function ________()" it needs to have "Var ______;" or an error message will ensue :( I'm not sure if I'm doing this wrong though, so I may be incorrect. It does make the error messages so away though :D
Under rating threshold (hideshow)
I need help. My score disappears whenever it changes, even at the start.
I'm using Impact font, if that makes any difference.
Under rating threshold (hideshow)
I'm having Problems with the healthMeter / Bar i don't know how to add the bar to the healthMeter. Can somebody explain this to me?
Under rating threshold (hideshow)
I can't download the source file. Nothing happens when I click it. And I really need it right now. :( When I add the if(_visible = true) statement to my ship onLoad function, the ship does not turn invisible after being destroyed anymore. Very strange and annoying and can't find anything...
Under rating threshold (hideshow)
i9 knw tht this might just be another stupid comment, but my score looks just like theirs but without the yellow highlight and the "_root" is blue, is tht a problem?
Under rating threshold (hideshow)
bro, you didn't understand what i wrote.
i have the source files, but when i try to open the .fla, it says it's not compatible or something like that.
Under rating threshold (hideshow)
well, im using cs5 trial because the cs3 one ended. i couldnt get cs3 to work. now when i add the "_root.gameOverMenu.playAgainButton.onPress = function()
{
_root.ship.newGame();
}" part, i get an error: "This statement is not permitted in a class definition."
Under rating threshold (hideshow)
ok so this is what you do: you make it like normal but make the ship invisible and make the explosion animation keep popping up where the player is. it looks SOO cool!!!
Under rating threshold (hideshow)
woah! if you make it stay visible in the explode function and the explosion doesnt dissapear (and keeps being made) it looks really cool!
Under rating threshold (hideshow)
this is by far the worst shootorial so far.
especially for those who can't open the source files (the actionscripts work, just not the .fla) so we're forced to make a health bar and game over menu which the instructions "just do it"
i did manage to work my way through, but if anyone can tell me why my health bar ends outside of the outline, rather than at the end of the outline, that'd be great. i'll try to work it through myself in the meantime
Under rating threshold (hideshow)
grrrr. none of this works :(
ive made it exactly. no errors. but nothing at all works. the health meter doesnt go down. score doesnt go up. :(
its really disapointing because all the others have worked so far
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)
Gah! Had my health bar working, then went in to tweak it, and now it's not working again! And I can't figure out how to make it work again!
Under rating threshold (hideshow)
RESOLVED - I had a 0 in my scoreText area, so it kept resetting it. Make sure your Score area is completely blank or it'll reset on every kill.
Under rating threshold (hideshow)
Finally, after about 6 hours, I got my score to work.. kinda. It know "reads" and updates on the first kill, but the next kill, it resets. Third kill it updates, 4th it resets. Any idea how I fix that?
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)
OMFG!!! i just spent about 4 hours trudging through my coding to find out that the reason that my health bar wasn't scaling was that i had put the instance name of as healthBar.bar and then refered to it in my code as _root.healthMeter.bar PLEASE PLEASE PLEASE be very careful with your instance names. it's an rooky mistake but be vigilant! also be careful as it's picky with capitalisation too... just glad i got it working in the end! :P
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
Under rating threshold (hideshow)
@ Krinsmnite, you could've done that without redoing the whole bar. Just right click it in your library and select edit. Move the bar so that the left side of the bar is right on the "circle" in the middle. there you go.
Under rating threshold (hideshow)
Ok, figured it out! IMPORTANT: When you first create the bar movie clip, make sure the "Registration" is set with a dot on the left. I didn't know what that meant, so I had to go back and remake the bar. :(
Under rating threshold (hideshow)
Can't see the source code, it's not compatible (unexpected file format). So that leaves me guessing on half of the things I need to do. Google is no help. :( Can someone please explain how I am suppose to align the health bar? It "empties" toward the center.
Under rating threshold (hideshow)
I like it, probably one of the best written tutorials I've seen in some time. Only one complaint, the part about making your own health meter is summed as: "Hey make your own health meter", which might not be as helpful to noobs who are here to learn 2 Flash. Perhaps a quick description on how to build the meter (i.e are they all separate movie clip objects that are just stacked on each other, or are they some sort of combined unit?) would help out. Otherwise, 4/5 and I hope that I can post a hilariously noob shooter game of my own soon using your guide.
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)
although this code includes a custom powerup i made called inferno, makes you take half damage, of course it wont work without the other coding I got. hope this all fits and works, sorry for the huge post.
Under rating threshold (hideshow)
is my reset health one, in the onload part put "resetHealth()" and in the new game function as well. also for this code the health bar on the screen must be named "healthMeter" also for the enemy ships be sure to put in code to make you lose health such as... if(this.hitTest(_root.ship))
{
if(_root.ship.shield._visible==false){
_root.ship.updateHealth(-10);
}
if(_root.ship.inferno._visible==true){
_root.ship.updateHealth(+5);
}
explode();
}
Under rating threshold (hideshow)
function updateHealth(points) {
health += points;
if (health<1) {
health = 0;
_root.gameOverMenu._visible = true;
explode();
}
_root.healthMeter.bar._xscale = health;
}
thats the update health ive got and this... function resetHealth() {
health = 100;
_root.healthMeter.bar._xscale = 100;
}
Under rating threshold (hideshow)
heres how u shud do the helth bar, when you are making it, right off make 3 layers, the lowest called "backdrop" this will be the layer showing after damage is taken, the second layer, the bar, for that you make a separate movie clip not exported for actionscript, named "bar" NOTE: when making the bar make sure the image center is aligned to the direction your bar will move! (I.E. when aligned to the left, damage will make the bar go that way) then the last layer, i called it cover, this will be like an artsy "cover" I had a sort of flame one for mine, looks cool. thats the way to make the actual bar, THEN in the coding the update health will look like this, im not sure if my code is farther than this tutorial lvl but whatever
Under rating threshold (hideshow)
also for the enemy ships be sure to put in code to make you lose health such as... if(this.hitTest(_root.ship))
{
if(_root.ship.shield._visible==false){
_root.ship.updateHealth(-10);
}
if(_root.ship.inferno._visible==true){
_root.ship.updateHealth(+5);
}
explode();
}
although this code includes a custom powerup i made called inferno, makes you take half damage, of course it wont work without the other coding I got. hope this all fits and works, sorry for the huge post.
Under rating threshold (hideshow)
if your health meter doesn't move, also make sure that your healthmeter on the scene has got the instance name 'healthMeter'. check this in it's properties. i needed 3 hours to find that out -.-
Under rating threshold (hideshow)
My score has decided it hates me, so whenever I explode an enemy instead up updating with the added score it disappears. Anyone else getting this problem?