Under rating threshold (hideshow)
@bandocome - When you made the movie clip you probably set the "origin" to the middle. When you convert to symbol then there will be a grid called "Registration", make sure the square on the left is highlighted. It seems like you had the square in the middle selected instead.
Under rating threshold (hideshow)
For some reason, my health bar goes down on both sides, not from right to left. This doesn't effect gameplay at all, but it looks kind of strange... anyone have any ideas?
Under rating threshold (hideshow)
My game over screen wont appear i have been trying everything i can think of for a week and still can't figure it out
SOMEONE PLZ HELP ME!!!!
Under rating threshold (hideshow)
when ever i shot an enemy it says
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.
and nothing happens after
Under rating threshold (hideshow)
this tutorial has so little info like how big is the score box and am i supposed to put the 0's in the box im mad confused
Under rating threshold (hideshow)
my ship wont move now... it did before i started this shootorial step...
can somebody post the format... cause i'm sad now :*(
thx ^(^_^)^
Under rating threshold (hideshow)
I have gotten this far in these tutorials without much trouble, even making everything myself. But now I get the same errors as BloodMuffin. I have written everything correctly, and the game works perfectly, except the fact that I get the "Class or interface could not load" error on all my new things. That is the healthmeter, bar, gameover and playagain clips. So when I test it, I get that error, but the game works fine. I think that is kinda weird. Almost seems like I have done something wrong by adding movieclips inside movieclips, but as far as I can tell that is what I have to do.
Under rating threshold (hideshow)
@ BloodMuffin, it sounds like you forgot to put a '.' between healthMeter and Bar. You're referring to .bar inside .healthMeter, not .healthMeter or .healthMeterbar when you want it to scale down.
Under rating threshold (hideshow)
oh nevermind, just went through my explosion class, i had a ";" after "if(this._currentframe == this._totalframes)" damn actionscript is so picky! :)
Under rating threshold (hideshow)
im trying to make my own explosion animation but for some reason it only shows till the second keyframe and then stops.
does "if(this._currentframe == this._totalframes);" make is stop at the first keyframe or something?
Under rating threshold (hideshow)
just fixed my score, ive read every comment and no one answered how to make it appear or update so i will:
its very simple, your "onEnterFrame()" function works in an order, so if you reset the score after you update it you will never have a score
so make sure you functions in "onEnterFrame" are ordered correctly...
Under rating threshold (hideshow)
I'm having difacult time giving my PlayAgain button and my GameOverMenu the instance names, once I lable them with the instance name and go back to another menu or somthing it just goes blank as if I never typed in the instance name, as if it didn't save it and so in the game it wont bring up the gameover menu! Can anyone help??
Under rating threshold (hideshow)
My Score won't work. The reset score works because I put resetscore() in the onframe. But when I shoot enemies it won't increase. Please help, using this for a college coarse and I'm on a deadline...
Under rating threshold (hideshow)
i got the score working now but PLEASE i need help with the healthbar! i set everything up exact and i followed the guys tutorial in the comments with all the steps to make my bar. it just wont load it and idk why.
**Error** Symbol=healthMeterBar, layer=Layer 1, frame=1:Line 1: The class or interface 'healthMeterBar' could not be loaded.
**Error** Symbol=healthMeter, layer=background, frame=1:Line 1: The class or interface 'healthMeter' could not be loaded.
Total ActionScript Errors: 2 Reported Errors: 2
Under rating threshold (hideshow)
ive double checked everything, my spelling and capitlaization is all correct and it still says it cant load, any reason why?
**Error** Symbol=healthMeter, layer=Layer 1, frame=1:Line 1: The class or interface 'healthMeter' could not be loaded.
**Error** Symbol=healthMeter, layer=Layer 1, frame=1:Line 1: The class or interface 'healthMeter' could not be loaded.
Under rating threshold (hideshow)
ok first off the source files link on the first part doesnt work. second my score keeper wont keep score, and last my health bar doesnt do anything. ive checked over and over again but i dont know what to do
Under rating threshold (hideshow)
need more help getting the error:
**Error** C:\Documents and Settings\Cool Dude\My Documents\Cool Flash\Ship.as: Line 75: There is no property with the name 'health'.
health = 100;
Total ActionScript Errors: 3 Reported Errors: 3
Under rating threshold (hideshow)
@ kellogscompany: I had the same problem and i figured out I put the resetscore(); inside another function..... i put it below one closed "}" after the resetscore(); function had closed and it worked.... I hope that helps!
Under rating threshold (hideshow)
im also getting the error:
**Error** C:\Documents and Settings\Cool Dude\My Documents\Cool Flash\Ship.as: Line 16: There is no method with the name 'resetScore'.
resetScore();
Total ActionScript Errors: 1 Reported Errors: 1
Under rating threshold (hideshow)
is it supposed to happen something when you have completed page 2-3 and coded
`` var score; `` on page 4
please answer!
Under rating threshold (hideshow)
you can cheat on this game if you place your ship out of the sight, so the enemy missiles cant hit you, cuz the enemymissiles get destroyed if it reaches _x = 0 but your ship is _x = -20 ^^
Under rating threshold (hideshow)
im so close but it seems my game over button refuses to work i double checked like 10 times but its exactly like the tutorial and i checked it against the source too
Under rating threshold (hideshow)
so i followed this one down to the nose and when i test it it pops up but i can't do anything ship doesnt move enemies no longer pop up etc..
Under rating threshold (hideshow)
Hey guys! I've got a problem: I get syntax error on healthbar but the the rela problem is that it works xD
What should i do?
Under rating threshold (hideshow)
hey guys, after I put in the scoretext and I add "resetScore();" in my ship class onLoad method, the movie doesnt work and it gives me the error "There is no method with the name 'resetScore'
im using flash cs4 but as cs3. any ideas what the problem might be? pleasee help D:
Under rating threshold (hideshow)
Hello.
Can someone help me with the new game logic. Basically everything works fine when the health goes out: the menu comes up, score shows up etc. When i press Play Again everything is perfect except that the number of enemies continues to grow from before. In other words, if in the moment when the player lost there were 6 enemies spawned, after I press play again there are 6 again, not one or whatever. How to reset the number of enemies?????? ty
Under rating threshold (hideshow)
Ranjaman, I think you missed the part of step 12 where it explains to you how to do that. Why it's in a window and not part of the main text, I'm not sure.
Under rating threshold (hideshow)
My general advice to everyone that's made it this far is to stick with it. Game development is hard. You will never escape the feeling of not knowing quite why something isn't working the way it should. In ten years you may be working on completely different (and hopefully far more complex) problems, but the confusion never goes away. So don't get discouraged, keep trying!
Under rating threshold (hideshow)
I had to add this to function onEnterFrame()
if(!this._visible)
return;
to prevent enemy ships to spawn over the game over menu.
It seems onenterframe is still called even if the ship is not visible.