|
-
1.
So put in the begining of your game - before it actually starts
LifeBoss = 50
then during the game, everytime he's hit:
LifeBoss -= 5
which means that the value in "LifeBoss" will decrease of 5 units everytime he's hurt.
Then check
if (Lifeboss == 0) { gotoAndPlay (your scene)}
2.
It's the same bit of code, when your final boss life is down to zero, then
if (LifeFinalboss == 0) { gotoAndPlay (your gameoverscene)}
check "gotoAndPlay" in the help for the exact syntax of what you need because you can go to a specific scene, or a specific frame, or a specific frame in a scene.
Now, get famous, earn 350 millions and remember me!
Hope nobody knows I am still on Flash 5 
______________________________________
All artists are prepared to suffer for their work
but why are so few prepared to learn to draw?(Banksy)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|