Games Achievements My Kong Sign In

Comments for Shootorial #6

« Back to Shootorial #6

CodeGuy

Nov. 14, 2008

Under rating threshold (show) schredy, if I drag the bar, then the whole bar moves instead of just the middle.

+ - !

(0)

nikitarama

Nov. 14, 2008

Under rating threshold (show) how do you remove the powerups from the stage when the ship explodes? because mine don't and i can still rack up points and regenerate health once i'm no longer visible (if there were still powerups once i exploded)

+ - !

(0)

hastingsfc

Nov. 14, 2008

Under rating threshold (show) when i enter the following code; "function updateScore(points) { score += points; _root.scoreText.text = score; "}" There is no property with the name 'score'." and "There is no property with the name 'score'."

+ - !

(0)

schredy

Nov. 14, 2008

Under rating threshold (show) @ CodeGuy: go to your healthmeter, keep dubble-clicking on it until you are at the healthmeterbar. then, drag the bar until the little cross in the middle is at the upper left corner of the bar. (hope you understand what i just said...)

+ - !

(0)

darkthing

Nov. 12, 2008

Under rating threshold (show) To make the health bar scale properly but without testing it myself (I am about to try) add the following to the update health function: _root.healthMeter.bar._x += ((points / 2) * 1.5) Replace 1.5 with one tenth of the number of pixels in your health bar; that will only work for me.

+ - !

(0)

CodeGuy

Nov. 12, 2008

Under rating threshold (show) Forestviolence, I did that when I made my health meter, but scaling doesn't work right. Any idea how to make it scale from the left instead of from the center? In the health meter in the exmple, the anchor point on the bar is on the left instead of the center, but I don't know how to do that.

+ - !

(-1)

embracingchaos

Nov. 12, 2008

Under rating threshold (show) I have very limited programming knowledge... (HS class 10 years ago C++), after troubleshooting 5 teams each shootorial, it's working. thanks for the motivating shootorials to get me back into it.

+ - !

(0)

doodlebugged

Nov. 12, 2008

Under rating threshold (show) what if you wanted to add an animated intro for the game over screen? how to get it to freeze at the last frame of animation, for you and until you click the play again button?

+ - !

(0)

Forestviolence

Nov. 12, 2008

Under rating threshold (show) to make your own healtMeter: right-click on the library select "new symbol" name it "healtMeter" make 3 layers. top layer: border middle layer: bar. (selection tool, right-click, "convert to symbol", movie clip, name: "bar" and give it the instance name "bar") bottom layer: the backdrop color. then you done ^^

+ - !

(0)

Quaznar

Nov. 12, 2008

Under rating threshold (show) Looks to be a small mistake on page 10 - you say set the _visible to false, and then talk about the _visibility property that all objects have - small typo

+ - !

(0)

assassinfury91

Nov. 10, 2008

Under rating threshold (show) Can some1 help wen i put in the function updateHealth(points) { health += points; _root.healthMeter.bar._xscale = health; } function resetHealth() { health = 100; _root.healthMeter.bar._xscale = 100; } i get 3 errors sayin theres no property with health can some1 help?

+ - !

(0)

Squidmonkey

Nov. 10, 2008

Under rating threshold (show) Yeah, I'm having the same problem as gamgam0. I fixed it, then messed it up, and now I cant remember what I did..

+ - !

(0)

Gamgam0

Nov. 09, 2008

Under rating threshold (show) why won't enemy's missiles do damage to me

+ - !

(0)

CodeGuy

Nov. 08, 2008

Under rating threshold (show) Mexasian, make sure that all the stuff you have to name on your gameover screen are right. Also, make sure the text is static and there's also a tiny little button for the text to make it so the play can't select it.

+ - !

(0)

Mexasian

Nov. 08, 2008

Under rating threshold (show) Everything else is working, but my game over screen isn't working. I'm not able to press the new game button, and the enemy ships appear while the window is still up. Help?

+ - !

(0)

schredy

Nov. 08, 2008

Under rating threshold (show) so, add the resetHealth-function to your Ship-class as described on page 6 of the shooturial. then, add "resetHealth()" to your onLoad-function of your Ship-class

+ - !

(0)

schredy

Nov. 08, 2008

Under rating threshold (show) @virtualcrush: you're wrong. this toturial says you to add "resetHealth()" to your onLoad()-function. this function has "health = 100" in it. so when the game starts, the function "resetHealth()" is called, who sets you health to 100 and sets the healthbar back to full health.

+ - !

(0)

MrAdamant

Nov. 07, 2008

Under rating threshold (show) VirtualCrush you are my hero...

+ - !

(0)

CodeGuy

Nov. 07, 2008

Under rating threshold (show) Nevermind about the play again button, I got that. Now if I could just figure out how to make the health bar scale from the left.

+ - !

(0)

CodeGuy

Nov. 07, 2008

Under rating threshold (show) Also, I'm doing something wrong with the "play again" button that I made. I cann't click on it unless I delete the text. Anyone know how to fix that?

+ - !

(0)

CodeGuy

Nov. 07, 2008

Under rating threshold (show) I got the health bar to scale, but it scales from the middle instead of moving towards the left. I made mine myself and it is almost like the one in the sample, except that the anchor is in the middle of mine and on the left of the sample's. Can anyone tell me how to move the anchor?

+ - !

(0)

bannanman

Nov. 07, 2008

Under rating threshold (show) i put this._visible = false; in my function explode()... I don't get it.

+ - !

(0)

bannanman

Nov. 07, 2008

Under rating threshold (show) For some reason I can't get my guy to vanish.

+ - !

(0)

bannanman

Nov. 07, 2008

Under rating threshold (show) OMG THANK YOU VIRTUAL CRUSH!!

+ - !

(0)

dysalot

Nov. 07, 2008

Under rating threshold (show) Health meter fix: on scene 1 click on the health meter thing then on the bottom give it am instance name of: healthMeter that should do the trick

+ - !

(0)

virtualcrush

Nov. 06, 2008

Under rating threshold (show) Put "health = 100;" under your onload function in the ship class. (This was just for clarification. Its for those whose health meter isnt going down.)

+ - !

(0)

virtualcrush

Nov. 06, 2008

Under rating threshold (show) FIX FOR HEALTH METER NOT DOING ANYTHING. The tutorial doesnt tell you to add "health = 100;" under your onload function. I discovered this by actually just going through the code and playing out what is happening in my head and I realized the game was never being told what the health is supposed to be at in the first place.

+ - !

(0)

virtualcrush

Nov. 06, 2008

Under rating threshold (show) Nevermind. I added them to the timeline and still have the same problem. I have literally tried everything I can think of. All of my code is correct and in the proper spot. I have literally gone over it at least 30 times. I can only suspect that the copied health meter is not working properly or I havent copied it over correctly. If anybody has any ideas I would love to hear them.

+ - !

(0)

virtualcrush

Nov. 06, 2008

Under rating threshold (show) Ok, if I only have the ship and background layers on my timeline, could that be my problem? I notice on the completed game they also have a health, points and game over layer on top of the ship and background layer. I dont remember ever having to create a new layer for anything. My points thing works fine and its not on there so I dont think this is a must have but I just wanted to check because I still cant get the health meter to go down when hit by a ship or a missile.

+ - !

(0)

virtualcrush

Nov. 06, 2008

Under rating threshold (show) funnyruler, I am interested in how you fixed it? I have all the code proper, all spelling correct. I copied over the health thing like instructed. It just does not update.

+ - !

(0)

bannanman

Nov. 06, 2008

Under rating threshold (show) I have the smae problem as funnyruler! GOD DANG IT!!!!!!1

+ - !

(0)

bannanman

Nov. 06, 2008

Under rating threshold (show) Yay I am making flash game and I have gone through 2 shhotorials. number 5 was frikin long.

+ - !

(0)

funnyruler

Nov. 06, 2008

Under rating threshold (show) nevermind, it works now

+ - !

(0)

funnyruler

Nov. 06, 2008

Under rating threshold (show) i can't get my health bar to scale, though i copied everything the way they said to if somebody can help please

+ - !

(0)

Damienov

Nov. 04, 2008

Under rating threshold (show) 7 already out :)

+ - !

(0)

SuperJoeeee

Nov. 04, 2008

Under rating threshold (show) What time does 7 and 8 come out?

+ - !

(0)

senseofdread

Nov. 03, 2008

Under rating threshold (show) cant wait for 7 and 8

+ - !

(0)

master54100

Nov. 03, 2008

Under rating threshold (show) everything works perfectly except the restart button =(

+ - !

(0)

SuperJoeeee

Nov. 02, 2008

Under rating threshold (show) Health bar doesn't work :( I followed it EXACTLY and it won't work.

+ - !

(0)

Smiter

Nov. 02, 2008

Under rating threshold (show) Tomidimus, i had the same problem as Drworm but thanks to you it is fixed (Y) Cheers

+ - !

(0)

Squiddle

Nov. 01, 2008

Under rating threshold (show) Yay completed it. I can't wait for the next and last two ^.^.

+ - !

(0)

Squiddle

Nov. 01, 2008

Under rating threshold (show) Oh nvm got it to work, just took a hile to realize you can't select movie clips with the sub-select tool.

+ - !

(0)

Squiddle

Nov. 01, 2008

Under rating threshold (show) How do you put a movie clip inside a movie clip?

+ - !

(0)

Squiddle

Nov. 01, 2008

Under rating threshold (show) I can work some stuff out, but it doesn't explain how you make a bar clip inside of it.

+ - !

(0)

987456321

Nov. 01, 2008

Under rating threshold (show) plz help me. i want the ship to be removed when it explodes not just make it invisible. this.removeMovieClip?? where would i put it and what do i have to do also i would like it so that it goes to frame (3) when the ship explodes.

+ - !

(-1)

Tomidimus

Nov. 01, 2008

Under rating threshold (show) @DrWorm: put resetHealth(); in the Ship's onLoad function, below resetScore();

+ - !

(1)

Drworm356

Nov. 01, 2008

Under rating threshold (show) can someone help me because my healthbar won't work i've checked everything i could think of and it stil doesn't work

+ - !

(0)

sawyer321

Nov. 01, 2008

Under rating threshold (show) function explode() { this._visible = false; var explosion = _root.attachMovie("Explosion", "Explosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth()); explosion._x = _x; explosion._y = _y; for(var i in enemies) { enemies[i].explode(); } }

+ - !

(0)

sawyer321

Nov. 01, 2008

Under rating threshold (show) function updateScore(points) { score += points; _root.scoreText.text = score; }

+ - !

(0)

sawyer321

Nov. 01, 2008

Under rating threshold (show) function explode() { var explosion = _root.attachMovie("Explosion","Explosion" + _root.getNextHighestDepth(),_root.getNextHighestDepth()); explosion._x = _x; explosion._y = _y; this.removeMovieClip(); _root.ship.updateScore(50); }

+ - !

(0)

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