How Can I Press A Button And Damage Another Object?

Discussion in 'How Can I...?' started by dariusebastian, Dec 13, 2019.

  1. dariusebastian

    dariusebastian Boxer

    Joined:
    Dec 12, 2019
    Messages:
    5
    Likes Received:
    1
    I am new to builbox and i m wondering if what i want to make is possible...
    I kinda have two issues.

    1.Does anyone know how to make a button change its color when its touched(but just when is touched....like,when u release the button it doesn t remain colored)?
    2.(the title) How can i press a button and damage another object?

    For example: i have two cubes. Is it possible that when i touch the first cube the second cube takes the damage?
     
  2. Jackazoid

    Jackazoid Avid Boxer

    Joined:
    Sep 7, 2017
    Messages:
    176
    Likes Received:
    72
    You can connect "Is Touched" node with a "Send" node in the first cube. In the second cube you can place a "Receive" node and connect that with a "Damage" node (Maybe start with a "Remove" node for testing).
    Now when you click cube one, Cube two will react (damage or remove or color whatever.)
     
  3. dariusebastian

    dariusebastian Boxer

    Joined:
    Dec 12, 2019
    Messages:
    5
    Likes Received:
    1
    Thank you very much! I solved the main problem. But what about the color change....
    I used set color node but it changes the color when touched but doesnt go back to main color when released....
     
  4. Jackazoid

    Jackazoid Avid Boxer

    Joined:
    Sep 7, 2017
    Messages:
    176
    Likes Received:
    72
    Try "Touch" node. It had touched and Release function.
     
  5. dariusebastian

    dariusebastian Boxer

    Joined:
    Dec 12, 2019
    Messages:
    5
    Likes Received:
    1
    Thanks! It worked!
     
    Jackazoid likes this.

Share This Page