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?
Under rating threshold (hideshow)
Thanks a bunch for all these shootorials. For the game im making, its almost done ^^. Just need to add sound, upgrades, and bosses!
Under rating threshold (hideshow)
I don't know where to add my script!
Which part does " function updateScore(points)
{
score += points;
_root.scoreText.text = score;
}"
Go to?
Where does "_root.ship.updateScore(50);" go? And why does it copy it with !?
Please post response on my profile!
Under rating threshold (hideshow)
Just to stress something that can happen really easy in flash (and you will never know it sometimes) It is case sensitive. if you were to use. healthMeter.Bar or HealthMeter.bar etc it wouldn't give you an error. Have to be careful of the typos.
Under rating threshold (hideshow)
I am in need of help with my Play Again Button. I have been through everything and checked it all, and it is exactly the same, but it still wont work
Regards
Hardinho
Under rating threshold (hideshow)
wouldnt it be more reasonable to make an invisible dummy movie clip instead of writing all parallel processes into the ship class?
Under rating threshold (hideshow)
Hi. Great tutorial. :)
For all with download problem: Try right clicking on "click here to download" and "open in new window", it works for me.
Under rating threshold (hideshow)
i think my problem is that im not sure if the update score function goes in the onload or enterframe section. i love these tutorials but wish they were more specific!
Under rating threshold (hideshow)
i cant figure out how to get it to add points! mine looks exactly like theirs and i get no error messages. i cant even download the source because the link on the first page doesnt work! can anyone help???
Under rating threshold (hideshow)
6.Select the bar layer and Modify>Covert to Symbol. Name it "Bar".Registre it to left and press Ok.
7.Single click on the "bar Movie clip" on edit mode and change his instance to "bar" and there must be instance of :Bar then let it
8.Go back on the Scene1,drop off HealthMeter(from library) on the stage and place it on the left corner(or anywhere you want)
9.Change his instance to "healthMeter" and check if "instance of:healthMeter" is right.
10.Add "health=100;" inside function onLoad() from class Ship.
11 it should work :)
Under rating threshold (hideshow)
Okay there how i solved my problem with health bar:
1.Create the healthMeter layer (i'll call it hMl)
2.On the hMl, create a New Symbol(Insert>New Symbol).Name it "HealthMeter"(Movie Clip that's all anything else) and click Ok.
3.Now "HealthMeter" is in your library, double click on it.You'll go inside.
4.There is a empty layer, just create 2 others and you'll have 3.Name them from upper to bottom:border,bar,backdrop.
5.Draw your Healthbar now:
-On border layer: draw only border without anything inside.you can draw it with flash tools but you can import from png file too.
-On bar layer:you have to draw the green rectangle with Flash.
-On backdrop layer:draw a white rectangle or obmit it if you want it transparent (this layer isn't important).
Under rating threshold (hideshow)
I'd assume your health bar has the registration point at the center, try changing it to the left side (right click->properties on healthbar in library)
Under rating threshold (hideshow)
when my health bar scales to my health variable it shrinks from both sides. How can i make it only decrease from the right?
Under rating threshold (hideshow)
@Roriok: Hmm, maybe when you created the Healthbar movie clip, you enabled "export for actionscript ", which that movieClip doesn't require.
Check if you did this, if so, then remove it from all your health related movieclips
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)
well they assume your not all complete idiots, to get scoring and health to work, follow tut exactly and put the health meter in ts own layer above layer 1, game over layer is at the very top of all layers, you can also put score into own layer.... if you are having probs with health meter not decreases right set origin to left, while converting to symbol
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)
ok i got this far with almost zero problems, nothing i couldnt fix in less than 20 minuts, but ive been 3 hours already trying to put make the bloody score work, everything is just as the tutorial says can anyone tell me if there is something missing in this tutorial? or ill have to check other 3.000 times T_T
Under rating threshold (hideshow)
on other note at this tutorial I started not to follow what they do... it helps you understand how to do things and learning from mistakes is much better than being confused about how the copying&pasting went wrong
Under rating threshold (hideshow)
ok -- I health was not working so then I put a number to represent it -- all working well and then my health changes from 100 to NaN and to make matters worse that font only contained numbers