Rooms in Trial Version

Discussion in 'Programming' started by Silviu276, Aug 27, 2018.

  1. Silviu276

    Silviu276 Guest

    Hello! I have only trial version so I can have maximum 5 rooms. I have menu, game room, game room(hard difficulty, if you click on the right button in the menu room), game over room(with a message) and options room. And I want to delete the game over message and put the game over image(or simple a text, but I will be happy to hear that you can help me on how can I do only a game over text) to appear after a collision with obj_laser, but on rm_game(game room)
     
  2. Becon

    Becon Member

    Joined:
    Jul 13, 2016
    Posts:
    109
    What I would do is make an object and assign your game over image to it and make sure the depth is pretty high so it displays over all the other objects. Then in, I assume your player who will collide with the laser I would set a variable isPlayerDead = 0
    If player collides with laser isPlayerDead = 1
    Have some sort or object in your room with no image that just does a check to see what state isPlayerDead in.
    If isPlayerDead = 0 do nothing.
    If isPlayerDead = 1 spawn draw, create whatever your desire to make the game over object spawn...do it. You can also use this function to make restart buttons appear in the room as well so you can start the game over without needing another room for it.

    Let me know if this helps you! =o)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice