Games Achievements My Kong Sign In

Comments for Shootorial #6

« Back to Shootorial #6

iGreenPuffle92

Apr. 09, 2010

Under rating threshold (show) nvm, I got it to work, I just followed the tutorial all over again and it worked! by the way, Putting health=100; in the onLoad function works like a charm.

+ - !

(33)

iGreenPuffle92

Apr. 09, 2010

Under rating threshold (show) HELP!!! I cant get the Health Bar to work!! it just stays at 100!

+ - !

(6)

katana099

Apr. 08, 2010

Under rating threshold (show) I can't seem to press the play again button.

+ - !

(6)

Malqua

Apr. 03, 2010

Under rating threshold (show) Source File: http://chat.kongregate.com/gamez/0002/6453/live/assets/source_files.zip

+ - !

(5)

Malqua

Mar. 29, 2010

Under rating threshold (show) I can't get the Game Over screen to dissapear and restart the game

+ - !

(2)

thegamemaker777

Mar. 28, 2010

Under rating threshold (show) I hade problems with the health bar but this worked for me " Sutafuzz says: Try adding health=100; in the onLoad() function of Ship class. I'm not sure if you're supposed to do that, but it works for me. : ) "

+ - !

(0)

Malqua

Mar. 25, 2010

Under rating threshold (show) Symbol=bar, layer=Layer 1, frame=1, line=1 The class or interface 'bar' could not be loaded. Symbol=healthMeter, layer=Background, frame=1, Line 1 The class or interface 'healthMeter' could not be loaded. Ship.as, line 24 Syntax error. function resetHealth() Ship.as, line 25 This statement is not permitted in a class definition. { Help pl0x?

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) also its best if you put the points you get from killing an enemy on the missile .as because you could still get points for ramming into the enemy

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) FOR THE HEALTH METER the "bar" movie clip needs to be under the instance name "bar" as well

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) or if (score = 200) { velocity = 50; } sorry about the amount of posts, bumping down possible important info, but hey this would be cool if we can get it set up on this one place, and it would suck if it was covered in a further shootorial

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) here is what I put to try before I got health set up. it doesnt work but if someone can improve on it and let me know that would be cool if (_root.scoreText.text = 200) { velocity = 50; }

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) hey this is a little bit before ive got the health meter part (not entirely sure what the layers mean) im thinking of putting a sort of level up function and im basing it off of an educated guess that this would work if(score=*put amount here*){ health=+*bigger health amount here* } or the same thing but without the + and just put a higher amount does anyone know if that would work? and for the layers, the "bar" layer, will that need to be an exported movie clip as well as the compiled thing?

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) I forgot to add the reset score function the ENTIRE TIME, and yes the update score on the explosion works as well

+ - !

(0)

garm29

Mar. 24, 2010

Under rating threshold (show) instead of adding the update score as part of the explosion part of the enemy ship class, why not put it as part of the EXPLOSION class itself? wouldnt that look tidier?

+ - !

(0)

ManFox

Mar. 24, 2010

Under rating threshold (show) As soon as I add the function updateScore(points) and I want to test it and go on "test movie" I can't control my ship anymore. when I remove the code, it does.

+ - !

(0)

garm29

Mar. 23, 2010

Under rating threshold (show) nvm I got it to work so well if I kill 1 enemy I get infinite points (NaN) btw; this is sarcasm, what im really thinking is "I will find a way to make computers feel pain and them torture them!!!"

+ - !

(0)

garm29

Mar. 23, 2010

Under rating threshold (show) hey where does the function updateScore(points) { score += points; _root.scoreText.text = score; } go? it doesnt say and the place I put it doesnt work for some reason

+ - !

(0)

Kreivi

Mar. 15, 2010

Under rating threshold (show) @ryanwwong Yes, it is simple and easy, but you are even more sad to assume everyone has the thinking pattern to figure out codes and variables in flash. That aside, the tutorials up to this point have been very instructive, easy to follow and helpful!

+ - !

(-1)

ryanwwong

Mar. 15, 2010

Under rating threshold (show)

+ - !

(-6)

Sutafuzz

Mar. 14, 2010

Under rating threshold (show) L3M0N4DE & Kafana : Try adding health=100; in the onLoad() function of Ship class. I'm not sure if you're supposed to do that, but it works for me. : )

+ - !

(0)

Nikolai12345

Mar. 14, 2010

Under rating threshold (show) When I take a look at the Games scripting with adobe flash cs4, It shows Absolutly nothing except for stop(). Why can't I see the scripts?

+ - !

(0)

Tegnano

Mar. 14, 2010

Under rating threshold (show) http://www.kongregate.com/games/Tegnano/tutorial-game

+ - !

(0)

Kafana

Mar. 12, 2010

Under rating threshold (show) 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.

+ - !

(0)

L3M0N4DE

Mar. 10, 2010

Under rating threshold (show) 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 :)

+ - !

(0)

real138

Mar. 06, 2010

Under rating threshold (show) @ ScaryFighter your not supposed to export it to actionscript. i was getting that error also even though it does not damage the game :)

+ - !

(0)

TheExterminator

Feb. 28, 2010

Under rating threshold (show) Why isn't my Score Display showing up? I did exactly as they said.

+ - !

(2)

Hoagy

Feb. 28, 2010

Under rating threshold (show) 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.

+ - !

(0)

ScaryFighter

Feb. 23, 2010

Under rating threshold (show) 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.

+ - !

(0)

fright01

Feb. 22, 2010

Under rating threshold (show) @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.

+ - !

(0)

luke214

Feb. 20, 2010

Under rating threshold (show) Ok i understand that the gameOverMenu musnt be exported to actionscript, however it still doesnt show up when my ship explodes!! FFS

+ - !

(2)

luke214

Feb. 20, 2010

Under rating threshold (show) When i create the background am i supposed to export it for actionscript? it doesnt say in the tut.

+ - !

(0)

luke214

Feb. 20, 2010

Under rating threshold (show) Im actually giving up, this is impossible... the simplist thing doesnt work.

+ - !

(0)

luke214

Feb. 20, 2010

Under rating threshold (show) 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.

+ - !

(0)

dabomb9990jr

Feb. 20, 2010

Under rating threshold (show) it says that resetHealth() and resetScore() have no method with those names any elp

+ - !

(0)

luke214

Feb. 20, 2010

Under rating threshold (show) 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?

+ - !

(0)

dabomb9990jr

Feb. 20, 2010

Under rating threshold (show) Everything they coverd in this slide is not working write..... is it because i have cs4 or what

+ - !

(0)

luke214

Feb. 20, 2010

Under rating threshold (show) 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.

+ - !

(0)

luke214

Feb. 20, 2010

Under rating threshold (show) 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 )

+ - !

(0)

luke214

Feb. 19, 2010

Under rating threshold (show) I cant open the complete fla file either because it says unexpected file format ¬_¬

+ - !

(0)

luke214

Feb. 19, 2010

Under rating threshold (show) i downloaded the source files, but there isnt any health meter in them... :O

+ - !

(0)

P00dle

Feb. 15, 2010

Under rating threshold (show) 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.

+ - !

(0)

Justinator3

Feb. 13, 2010

Under rating threshold (show) 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...

+ - !

(0)

stickmasterluke

Feb. 13, 2010

Under rating threshold (show) Anyone with healthbar problems, simply put resetHealth(); in your onLoad() function.

+ - !

(0)

rosslyn568

Feb. 08, 2010

Under rating threshold (show) 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

+ - !

(0)

Willomo

Feb. 08, 2010

Under rating threshold (show) scratch that, it just started to work. no Idea why

+ - !

(0)

Willomo

Feb. 08, 2010

Under rating threshold (show) hi. Mine doesnt work. the healthbar doesnt seem to work(it just says the same)

+ - !

(0)

SAM0095

Feb. 07, 2010

Under rating threshold (show) if u hve a problem with this, go on youtube type in Health Bar.

+ - !

(0)

SAM0095

Feb. 07, 2010

Under rating threshold (show) 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

+ - !

(1)

dylface94

Feb. 06, 2010

Under rating threshold (show) Cant get my score counter to show on the screen even though i have done everything by the word. any help anyone?

+ - !

(0)

Icecage

Feb. 04, 2010

Under rating threshold (show) @arnulf55 you need to put resetHealth() inside the function onLoad()

+ - !

(0)

  • add a comment
Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2026 Kongregate