How To An Object Follow The Character?

Discussion in 'How Can I...?' started by ulusher, Jan 10, 2017.

  1. ulusher

    ulusher Boxer

    Joined:
    Jan 10, 2017
    Messages:
    2
    Likes Received:
    0
    Hi everyone!
    I need help. I want to make an object and follow the character it. But it will doesn't turn on around the character. I was add an object and I connected the character but result is fail.
    In short, how can i make an auxiliary character like Rayman?



    Thanks in advance for your answers.
     
  2. bluemoonstudios

    bluemoonstudios Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    156
    Likes Received:
    56
    You can link the second character to the first and it will follow. You won't get the same look as the video though.

    Also you can't drag 2 characters in the scene so the second character would need to imported as either an object or an action depending on what you want it to do.
     
  3. ulusher

    ulusher Boxer

    Joined:
    Jan 10, 2017
    Messages:
    2
    Likes Received:
    0
    It's not a character. I just want to make a moving object that follows the character. This object will perform different animations in some actions.
     
  4. ub313

    ub313 Boxer

    Joined:
    Oct 13, 2018
    Messages:
    6
    Likes Received:
    0
    Hy,
    Have you found a solution?
     
  5. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    Gatekeeper logic piece clones the character and you can use that to follow the character but it will have the same properties, but a moving object to follow a character, you can link the character to the moving object by (activating connection mode).

     
  6. Rob Fitzgerald

    Rob Fitzgerald Boxer

    Joined:
    Oct 5, 2018
    Messages:
    4
    Likes Received:
    0
    _characters = this.scene().find('the Entity you want to follow');
    _ent = _characters[0]; //gets the 1st object of the entity array;
    _pos = _ent.position(); //gets 1st objects position on grid;

    Now set the object's position to the object above;

    this.entity().setPosition(_pos.x, _pos.y, _pos.z); //This will put the object right on top of the object.
    this.entity().setPosition(_pos.x-50, _pos.y-50, _pos.z-50); //Just subtract the distance from the main object to set it behind
     
  7. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    easily done in BB3 but would very hard to do it in BB2
     
  8. ub313

    ub313 Boxer

    Joined:
    Oct 13, 2018
    Messages:
    6
    Likes Received:
    0
    Can we add script to BB2? Please tell me how?
     
  9. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    No, buildbox2 is incapable of adding script. But that is why buildbox3 is getting released this year
     
  10. ub313

    ub313 Boxer

    Joined:
    Oct 13, 2018
    Messages:
    6
    Likes Received:
    0
    But, it's hard to edit BB2 bbdoc with BB3
     
  11. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    As I said, Buildbox 2 is incapable of adding scripts. It was never designed for it and they would need to start buildbox 2 from the very start to add it as a feature
     

Share This Page