00:00
00:00
View Profile MickeyG72

11 Game Reviews w/ Response

All 34 Reviews

Wow

Awesome first game.
I am making a game too.
Where do you put the actionscript: if(health == 0){gotoAndPlay(1824) to make the lives work?
Please help because you got it to work.

Wickamafiz responds:

assuming your game over frame is 1824 (which i dought it is cos thats a lot of frames) you can just put the code on any movie clips you have permanantly on the screen in an onClipEvent(enterframe){ handler.
so if you had no other code on that particular movie clip (but you probly would) it would look like this:
onClipEvent(enterFrame){
if(_root.health <0){
_root.gotoAndPlay(1824);
}
}
I used an < instead of a == because that wasy if you had 10 health left and you got hurt 20 you will still die. i also used _root.health instead of health because that way you can use that variable from other movie clips (it just makes life easier).

Chuck McGraw @MickeyG72

Male

New York, New York

Joined on 8/10/05

Level:
8
Exp Points:
620 / 710
Exp Rank:
> 100,000
Vote Power:
5.02 votes
Rank:
Town Watch
Global Rank:
47,319
Blams:
139
Saves:
42
B/P Bonus:
2%
Whistle:
Normal
Medals:
7