Under rating threshold (hideshow)
As L3M0N4DE, I also have no idea on how the health meter works. I copied both the meter and the bar from the source file but I don't understand in the slightest how or why it works. Can anybody who knows how the health meter works contact me through my page.
Thanks in advance.
Cheers.
Under rating threshold (hideshow)
i can't figure out the healthMeter. im using CS4, and everything else is perfect, but i cant make the healthmeter work. anyone know how im supposed to do it? i cant download it, so im trying to make my own. leave a comment on my page since i dont get on here very often. any help would be much appreciated :)
Under rating threshold (hideshow)
@ ScaryFighter your not supposed to export it to actionscript. i was getting that error also even though it does not damage the game :)
Under rating threshold (hideshow)
I wish someone would do an AS3 version of this. I'm using Mt Sun Studios Brick Breaker tutorial at the moment but I'm developing it way beyond what is shown in the tutorials and I want to do able to do the things in here in AS3.
Under rating threshold (hideshow)
can anyone figure out the problem with the health bar? it keeps saying The class or interface 'bar' could not be loaded. and The class or interface 'healthMeter' could not be loaded.
Under rating threshold (hideshow)
@Luke:
Yeah you can actually put it after the this.removeMovieClip(); because of something I don't understand... I think removing basically sets the file in a queue for the next garbage collection which isn't right then... but maybe its doing something else. either way it does work.
Under rating threshold (hideshow)
Ok i understand that the gameOverMenu musnt be exported to actionscript, however it still doesnt show up when my ship explodes!! FFS
Under rating threshold (hideshow)
I think i may have found the reason, but not the solution. I think the reason is that whenever i get killed , my score and health are automatically reset to 100, however for the gameover screen to come up my health has to be < 1.
I actually have no idea how to stop the score and health resetting when i die, ideally i want it to reset when play again has been selected.... any help? thanks.
Under rating threshold (hideshow)
K, i've got to the part where my ship gets destroyed and the enemies and my ship disappear, however the gameover screen doesnt come up... and i've followed the code exactly :/ any help?
Under rating threshold (hideshow)
2. If your bullets dont take down your health, but the ship crashes does, this is a very simple mistake, where you have been told to put
function onEnterFrame()
{
_x += speed;
if(this.hitTest( _root.ship) )
{
this.removeMovieClip();
_root.ship.updateHealth(-10);
}
if(_x < 0)
{
this.removeMovieClip();
}
}
... make sure the _root.ship.updateHealth(-10); is ABOVE the remove movie clip function, otherwise the missile will disappear before the health is updated.
Under rating threshold (hideshow)
Here's a few tips guys that took me hours to figure out ¬_¬
1. make sure the "bar" inside the "healthMeter" has its registration set to left, i could not do this in the library so i went into the movie clip "healthMeter" and used Break Apart on the bar, then deleted "bar" from my library and converted the broken apart bar to a symbol, name "bar" registration point left, REMEMBER though dont export it to actionscript ( i dont know why, just dont do it )
Under rating threshold (hideshow)
Help me! When the scoreText variabel is updated with Score it dissappears!!! It's as the text doesn't support any other character than zero.
Under rating threshold (hideshow)
I can't actually download any of the source files, it doesnt work if I click it, and if I open it in a new window it just disappears...
Under rating threshold (hideshow)
These tutorials are amazing. They actually teach you. I have already finished my first game. See it at http://www.kongregate.com/games/rosslyn568/planet-defender ---- anyway, great tut. 5/5
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)
dheerrr... well, I can't get my healtMeter to work properly.. anyone who has had a similar problem, or knows what can possibly be wrong??
Under rating threshold (hideshow)
When I start my game the game over menu flashed on and off rapidly and won't go away...any ideas of why that would be or how I can correct it?
Under rating threshold (hideshow)
I had problems with the score text not showing up. Since i didnt find an answer here i thought i would post my solution. it had to do with the 'embed text' step in the tutorial. if you DO want to use embed text you need to create a font symbol in the library for that font. Export it for actionscript. then it will be selectable in your font list. select the font. THEN you can click embed and it will show up.
Under rating threshold (hideshow)
nvm, i fixed that, but now my game doesn't work, it says i have an } out of place or something, yet when i check syntax on every script, no errors come up.
Under rating threshold (hideshow)
i'm adding the scoretext, but when i write score += points, flash says that score is not a recognized property.
wtf did i do wrong?
Under rating threshold (hideshow)
It bothers me that there is additional functionality in the demo at the start of the chapter. I followed along exactly and when the "game over" screen comes up, the ship is still back there it's just invisible. Pressing space still fires missiles and you can still collide with enemy ships spawning more explosions. I'm pretty sure I didn't miss any of the code. This looks awfully odd and undesirable. :/ Also the enemy ships are in front of the game over screen and I can't figure out how to get them to go behind it.
Under rating threshold (hideshow)
wtf! on the score part, when i put the enemy ship part in, it had some thing! my game only ran correctly after i deleted it
Under rating threshold (hideshow)
after 1 hour i gave up
i can't get healthbar to work
tried the one from shoottut 6 - 7
both didn't worked for me
they are in game and scripted but not counting backwards
Under rating threshold (hideshow)
Nice tutorial, although it can be hard to follow the health bar and game over menu. For those having trouble with the Restart Game button. Select 'Movie Clip' and not 'Button' as the type. Those who cannot download the source files: Right click and choose 'open in new window'
Under rating threshold (hideshow)
who can`t download contents,press mouse2 on "click here to download all the source files..." ant than open in new window(for opera it works)
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)
Nice tuto, works well if you follow steps... but sometimes i really feel like a sheep!
It needs more explainations, healthbar and gameOver menu are not so easy, and some code confused...
For exemple what's the difference between "_this.visible=true " and "_visible==true"?
And how command "enemies[i].explode()", located in ship.as, call a function located in enemyShip.as?
Under rating threshold (hideshow)
There is no method with the name 'resetScore'.
There is no method with the name 'resetHealth'.
There is no method with the name 'updateHealth'.
Help please?
Under rating threshold (hideshow)
DON READ THIS OUT LOUD! GIRL DIED IN 1993, A MAN BURIED HER IN HER OWN homewhen she was still alive. The murderer chanted, "Toma sota balcu" as heburied her. Now that you have read the chant, you will meet this littlegirl. In the middle of the night she will stand at the side of your bedstarring straight int your ey...es.......She will suffocate you like she was suffocated. This story is sadlytrue. Ifyou post this 5 differnt times she will not bother you lol really wow whats next a ghost is going to rape my dog?