answersLogoWhite

0

Stop lives at 0 in game maker?

Updated: 9/17/2023
User Avatar

Wiki User

13y ago

Best Answer

I don't know how you would stop lives (I think you mean live = 0)

Put this script in the step event:

if argument=0 {

lives = 0;

}

argument = what you want to be 0.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Stop lives at 0 in game maker?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Games

In Game Maker 7 how do you reset the score in a platform game?

You have to choose 'set score', and enter 0 in the box.


How do you make lives in game maker 8?

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.


How much does a Nintendo Wii game maker make?

"over $0 I know that"edit: Well, that is a very general question. The answer depends on many different factors.- Who do you work for?- How long have you worked there?- What kind of education did you get?... and the list goes on.Here is a link that will show you about how much a game programmer would make. (Not specifically for Nintendo)How_much_does_a_game_programmer_make


How do you make a locked level that can unlock in Game Maker?

Ini files. Open up notepad, and do this: [Levels] level[1]=0 level[2]=0 level[3]=0 Keep adding to the level[number] number until you make it to how many levels you have. Save the file as levels.ini. That will be bundled with your game, or you will have the game write that out if it doesn't exist. Whenever you beat a level, have the game write to the ini file that level[the next level] is now 1. In the level select screen, have it check if the level=1. If it doesn't, have it not allow you to enter that level. If it does = 1, allow you to enter. Ini files can also be used for more efficient saving/loading, creating settings, and more.


How do you make a level end when there are no enemy's left in game maker 8 pro?

I don't know much about Game Maker, tried to use it, but i was ten at the time and failed miserably ._. Well, from my short experience from other game making tools (game factory, etc.), you could make each enemy adds +1 to a counter when the player kills him, and make the counter end the level when it reaches the number of present enemies. Example: Imagine a level has 8 enemies. Each one you kill adds +1 to a counter, let's name it DeathCount. DeathCount starts at 0. With each enemy you kill, DeathCount goes up by 1. When DeathCount reaches 8, which is the total number of enemies in the level, it triggers an event that makes the level end. Don't know if this helps, as i have no experience with GM, but at least i tried :)

Related questions

How do you make an object stop moving when it touches the mouse in game maker?

if mouse_x y { hspeed = 0; vspeed = 0; }


How do you create a time limit when using the Catch the Clown tutorial on Game Maker 7?

Each step make a variable go down. when it reaches 0 stop the game


How do you make a vehicle not turn if not moving in game maker?

if speed != 0{}


In Game Maker 7 how do you reset the score in a platform game?

You have to choose 'set score', and enter 0 in the box.


What is the code on game maker 8 to set score to 0 if hit by something?

score = 0; Put the code in a collision event.


How do you reset score to zero in game maker 8?

Get a Set Variable Action and in the first field type score and the second type 0. Easy


In game maker how do you make the player lose health over a certain amount of time such as a minute?

Example:Step:if self.poison > 0{self.hp -= 1; self.poison -= 1;}etc


How do you jump on an enemies head in scripting in Game maker?

if vspeed &gt; 0 &amp;&amp; y &lt; other.y+8 { if vspeed&gt;0 { if (vspeed &gt; 0 &amp;&amp; not place_free(x,y+vspeed)) move_contact(270); vspeed = 0; } } else { x=xprevious hspeed = -hspeed; }//put this in the collision event with the ememy


How can you have lives is Minecraft creative?

The only way is to change the game mode to Survival by doing /gamemode 0 or for Adventure, /gamemode 2


What is the ISBN of Michael Tolliver Lives?

The ISBN of Michael Tolliver Lives is 0-060-76135-0.


How do I access Service Mode on my konica minolta bizhub?

Select -&gt; Stop/Reset -&gt; 0 -&gt; 0 -&gt; Stop/Reset -&gt; 0 -&gt; 1


How do you move the screen along with the object in Game maker?

Go to the room and then click the tab -viewsView In RoomX: 0 W: 400Y: 0 H: 200Port On ScreenX: 0 W: 400Y: 0 H: 200Object Followingobject here that the screen should followYou can leave the rest the same.Now when you play the screen will follow the player, or specified object.