lives

  1. B

    Question - IDE Lives and Health

    I'm making a game where my little guy runs into bombs and loses a life. But if he runs into a potion he will gain 1 life. Every time he runs into a bomb the life counter will just return to 3, instead of 2. It always resets back to 3. But it will add more lives when he gets the potions, it won't...
  2. R

    SOLVED Assigning an object to a variable?

    In my game I have created an object for my player's lives, and I also have a global variable called 'global.life'. Is there anyway that I could get the obj_lives to link to the global.life variable so that the hearts show up instead of just a number? I have included pictures of my code below...
  3. L

    Score are reset to zero

    i am making game "Space Rocks" for tutorial on youtube on GML. And i have some problems with Score and Lives. I added Text Lives and Score, write a code, but when i destroy asteroid, score for few seconds 10 but then equals 0, like with Lives. What problem, i dont know, their the tutorial
  4. H

    Move to different rooms depending on you score

    Hi I was just wondering if someone might be able to help. I'm wanting to have my player when they have 0 lives but say the score is over 1000 they go to a game complete room and if it's less than 1000 then they go to a game over room. Currently this is my code that I learnt from game maker...
  5. R

    Remove lives when an object reaches a specific location on the y coordinate

    Hi, I'm trying to get lives to be removed when an object reaches a specific coordinate on the y-axis. I'm using: if (object.y == 800) { llives=lives-1 } It's not working at all with this. I've tried if (object.y > 800) { llives=lives-1 } Which randomly seems to increase the number of...
  6. M

    GameMaker No more lives

    So I have started making a game for my first time on GMS 2 dnd. I have used a lot of GMS 1, and am very used to that. The one major problem I have ran into is that there is no "No more lives" event and I don't know how to create something like such. Whenever I create a "Step" event and use "If...
  7. T

    GML How do I add a game over screen and lives

    Hey everyone how is your day going today? I been trying to figure this out and been on a few forum post but I have yet to find it for my case. What I want to do is figure out what type of code do I need to add lives to my character.I am making a Mario like Platformer. I already have it so that...
  8. H

    Weird errors life when going from GMS 1.4 to 2?

    So with my player, I have a basic sprite system set up, setting in create lives = 5; A basic enemy function where on hit lives =- 1 and in another object under the draw event(so that the player sprite doesn't get messed up) action_draw_life_images(view_xview+10,view_yview+10,heart) This doesn't...
  9. P

    GameMaker How to remove lives in GameMaker Studio 2?

    I'm trying to give my game lives, so whenever the player collides with the enemy objects, the game restarts and a life is lost. I've been searching around for a while and it still doesn't work. Here is my code in the event of colliding with the enemy: lives = lives - 1 if lives == 0 then...
  10. M

    scrolling shooter life problem

    I'm having trouble with my life system in my game. I have it set so that it will draw the amount of lives the player has and add on more if he/she picks up the extra life. It started going haywire when the player died however, as it would revert back to drawing only 3 lives when the player had...
  11. R

    Draw_text

    I am trying to draw text from a variable to the room in my game. It isn't showing up but I have the depth above all other items. It used to work until I used draw_self() so it stayed in the same position for my side scroller. Since then I have tried all sort but I can't see it. And of course it...
  12. R

    Room restart resetting lives.

    I am trying to restart the room when health equals 0 and then you lose a life but when the room restarts the global lives variable resets to 5 and therefore lives will not go down. I have had some suggestions but I am fairly new to gamemaker and I am really stuck with this?
  13. R

    Lives relative to health

    It's me again struggling to do easy things,once again cannot work out why my code doesn't work it all makes sense? Basically just want to loose a life when health = 0. You have 5 lives and when you have no lives goes to a game over room. I think the health system is working fine at least it...
  14. M

    Add lives after waiting some times

    How to Add lives after waiting some times like candy crush game .
  15. C

    Legacy GM Lives breaking?

    So I have my game set to 3 lives, where if you lose all of them you get to the you lose screen, but when you press the R key to restart you now have unlimited lives... Anyone know what i should do? Thanks!
  16. N

    Asking for help for lives...

    Hello community. I am making my first shoot em' up on game maker(A gradius fangame) and I need some help with a certain mechanic that's been bugging me. So, I have a ship shoot projectiles at enemies, and when the enemy is hit, the projectile gets destroyed and so does the enemy, and a line of...
  17. V

    Draw_Lives Block doesnt work correctly

    Whenever i use the Draw_Lives block, it doesnt ever print the caption. Instead it draws whatever number i have for the xposition on screen. So if i said the x position is 0, and the value of lives was 3, then it will print " 0 3" instead of "Lives: 3" im pretty sure this is a bug, is this...
Top