Advice: Do Not Copy The Nodes Of The Messages

Discussion in 'Buildbox 3.0' started by mmicoe, Apr 6, 2020.

  1. mmicoe

    mmicoe Avid Boxer

    Joined:
    Dec 20, 2016
    Messages:
    130
    Likes Received:
    29
    Hi all,
    this is my first prototype project:



    1) Getting Power-1 -> Melee
    2) Lost live (Health bar)
    3) Kill 1 enemy
    4) Get 1 Live (Health bar)
    5) Get Power-2 -> Knife
    6) Kill enemy 2
    7) Get Power Off
    8) Get 1 Live (Health bar)

    Character Map:
    Character_Map.png

    Warning: Using send messages to killing enemies on Melee:
    Killenemies.png
    (Using send messages to kill enemies with Melee)
    Be very careful with killing enemies using Send and Receive Messages!

    1) On Pressed Button Attack Melee: if Collide with Enemy_1 -> Send Msg_1
    2) On Pressed Button Attack Melee: if Collide with Enemy_2 -> Send Msg_2

    DO NOT COPY THE NODES OF THE MESSAGES!
    if you copy the message nodes you always receive the message from the source node to the destination!

    (3 hours to find out)
    All the best!
    Mauro
     
    aryanveer95 and Jackazoid like this.
  2. Bob S

    Bob S Boxer

    Joined:
    Sep 15, 2018
    Messages:
    8
    Likes Received:
    0
    How were you able to create a Health Bar? I've tried several videos including one from Buildbox (Zach's video) and for the life of me cannot get anything to work. I have no issues tracking the health of my character. But just can't display the health on the screen.
     
  3. aryanveer95

    aryanveer95 Boxer

    Joined:
    Oct 7, 2015
    Messages:
    25
    Likes Received:
    5
    You should make a video on how to make that health bar.
     
  4. HG-2018

    HG-2018 Avid Boxer

    Joined:
    Jun 18, 2018
    Messages:
    167
    Likes Received:
    94
    aryanveer95 likes this.
  5. mmicoe

    mmicoe Avid Boxer

    Joined:
    Dec 20, 2016
    Messages:
    130
    Likes Received:
    29
    Hello, I can explain it to you:

    IN BB3:
    A) Using Asset Library Create a Triangle that will be the enemy.
    B) Using Asset Library a Rectangle that will be the Character.

    You must use the bbassets from Template: Intellstelar Strike <-- Here is the solution.
    1. Go to UI and Drag&Drop Health.bbasset (This is the Health bar)
    2. Drag Enemy_S.bbasset to World UI. (It will create Enemy Rocket Object)
    3. Drag Player.bbasset to World UI. (It will create Player Ship Object)

    a) Go to PlayerShip:
    1. Copy Send (Health Bar) Node to your Character.
    2. Copy Health Node to your Character. Those are the lives (3 by default but you can customize it if you want. But if you customize it, you will be customize the Health bar too.)
    3. On Enemy: if Collide (Player) (Be carefull, you must use this Node) --> Damage (I attach you screenshot)

    Attach you .bbdoc example
    https://drive.google.com/drive/folders/1I6sIVlRw3Pt9yHAk9wOh-VfM-7xbkivL?usp=sharing

    You must look at the Player and the enemy. You can Remove enemy Ship 1, Enemy Rocket 1 and the Player Ship after it works!
    All the best!
    Mauro
     
    Last edited: Apr 18, 2020
  6. aryanveer95

    aryanveer95 Boxer

    Joined:
    Oct 7, 2015
    Messages:
    25
    Likes Received:
    5

Share This Page