Let A Character Die If Certain Object Is Not Touched

Discussion in 'How Can I...?' started by Cornerbox, Sep 12, 2017.

  1. Cornerbox

    Cornerbox Boxer

    Joined:
    May 19, 2016
    Messages:
    42
    Likes Received:
    3
    Hi all,

    How can I let my character die if its not touching a certain object.
    So for example, my object is hovering over a white square, but after it (completely!) leaves the white square it will die, otherwise it will stay alive.

    See the image below: Thanks in advance!
     

    Attached Files:

  2. k2milli

    k2milli Boxer

    Joined:
    Jun 23, 2018
    Messages:
    4
    Likes Received:
    0
    hello, Im having the same problem did you possibly find solution?
     
  3. jerry

    jerry Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    421
    Likes Received:
    232
    You can maybe make a set of enemy "walls" around the character. If the character touches then it will die. If the character is supposed to move into the white box when it touches the other maybe you can make an enemy that moves out of the way. Timed with a mover like the moving white box. So slides up and down?
     
    k2milli likes this.
  4. k2milli

    k2milli Boxer

    Joined:
    Jun 23, 2018
    Messages:
    4
    Likes Received:
    0
    Sorry can you please explain this to me, I'm rely stuck now.
    I want to check if the incoming enemy has passed my character. If the incoming enemy passes my character I want the character to lose health.

    I thought of putting a wall behind my character that loses health, but Buildbox doesn't allow two characters of different shapes in the start scene.
     
  5. jerry

    jerry Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    421
    Likes Received:
    232
    Here is what I was thinking.
    1.Enemy would be transparent.
    2. If the side block moved left and right
    3. Then enemy could move up and down(out of the way)
    4. Then character could pass over

    Of course you would need other "walls" or enemies around all the white platforms.

    I hope this helps.
     

    Attached Files:

Share This Page