answersLogoWhite

0


Best Answer

I will explain how to make your own lives variable; granting you better control over them.

Create event:

lives_left = 3; //Replace 3 with the lives you start with.

health_left = 100; //Replace 100 with the health you start with.

health_max = 100; //Replace 100 with maximum health available.

lives_max = 3; //Replace this 3 the maximum amount of lives.

Step event:

if(lives_left < .1) { game_end(); /*Replace game_end(); with how your game ends*/ }

if(health_left < .1) { /*How you die goes here*/ }

if(health_left > health_max) { health_left = health_max }

if(lives_left > lives_max) { lives_left = lives_max; }

Whatever event makes you get hurt:

health_left -= .1; //Replace .1 with how much damage you take.

This works by simple math; if you have too many lives, you lose that extra life, to have the maximum amount. If you get hurt, it removes some of your health variable. If you have 0 health left, you lose a life. (Set health back to the maximum when you die though, or you'll infinitely die) If you have 0 lives left, the game ends.

This system allows for healing, by health_left += 20; /*Replace 20 with how much to heal*/, allows you to increase lives max, increase how many lives, and allows you to increase how much health you can have.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make lives in game maker 8?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you make a 3D online Game for free?

Game Maker 8 on yoyogames.com


How is game maker 7 different from game maker 8?

Lot of new features.


What software was used to make mafia 2?

It was made using GAME MAKER 8 pro.


How do you get my game maker 8 game on the xbox 360 or ps3?

You can't as it's not meant to make Xbox360 games, and not supported.


How can you convert a game maker 8 game to game maker 7?

i had no clue that there was a game maker 8, but try this... go into the file tab at the top menu. click the merge game button, then choose the .gmk file you would like to convert.


How do you make a Pokemon game in game maker 8?

i been using game maker since 2009 and i'm 100% sure that you can make a game like pokemon twighlight on game maker... but it requires time and effort because it is a big game:) i hope that helps:) i make videos about games on game maker in youtube... youtube.com/rcrgames but its in spanish sorry:)


Active game maker 6.1?

Activate? i dont think you can considering they just released game maker 8


Which softwere is required to make 3D game?

C++, Java, Game Maker 8, the list goes on and on... You're not going to get an answer with everything possible.


How do you make a login on game maker 8?

Press the log-in link on sandbox.yoyogames.com, there is a button to sign up for an account.


Where can you find a site where you can make a shooting game?

Its www.yoyogames.com and then click game maker, and download the game meker 8 for free, and go ahead and make you games. I think it's virus free.


What is the avtavation code for game maker 8?

It is illegal to share such a thing. If you have lost your code, contact YoYo Games. If you have not bought Game Maker 8, use lite.


Is there another program installed with game maker 8?

yes there is