Make An Image Follow Your Character... (layers)

Discussion in 'How Can I...?' started by AaroArts, Jan 7, 2017.

  1. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    How can I have an image linked to the Character, but have the image thats linked, behind a different objects layer?

    It looks correct in Buildbox, but as soon as it's run in preview, it jumps to the top layer...

    BB Layer is as follows:

    v Game Play Layer:
    Character
    Platform
    Ball Link​
    Background

    So...
    [​IMG]


    My game relies on having this Ball image behind the platform, but to travel alongside the character...

    Any ideas?
    Thank you so much. :)
     
    Mr Goodcat likes this.
  2. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Yeah. Objects appear where the master object is (which in your case is the character). I don't think there is a way around it.
     
    JoeWilson likes this.
  3. steverha

    steverha Boxer

    Joined:
    Oct 8, 2015
    Messages:
    49
    Likes Received:
    16
    Make your object/platform linked with another object or platform, the linked object can be invisible, or it could be another platform, up to you. That should do the trick.
     
  4. Wa1rus

    Wa1rus Boxer

    Joined:
    Jan 9, 2017
    Messages:
    15
    Likes Received:
    2
    Did you ever figure out a solution to this?
     
  5. A.Taha

    A.Taha Boxer

    Joined:
    Feb 16, 2017
    Messages:
    3
    Likes Received:
    0
    No this is not working
     
  6. anngelinoo

    anngelinoo Avid Boxer

    Joined:
    Aug 23, 2016
    Messages:
    128
    Likes Received:
    40

    You tried to connect layer of character?
     
  7. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    This can't be achieved.
    The moment you connect two images, the child takes the layer/z-value of the parent node I believe.
    I tried everything I could think of.
     
  8. anngelinoo

    anngelinoo Avid Boxer

    Joined:
    Aug 23, 2016
    Messages:
    128
    Likes Received:
    40
    you could explain why you put an image over character and a platform? if you want to do otherwise, your platform and the bottom half to put "collision" at the top put without colision .
     
  9. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    I drew the diagram to explain this.
    I wanted my character in front of the foreground, with an piece of the character (the image following characters movement), behind the foreground.

    However, as soon as you "link" the image to the character, it adopts the characters z-value, thus pulling it in front of the foreground, from behind and losing the illusion.

    Unfortunately, it can't be done.
     
  10. steverha

    steverha Boxer

    Joined:
    Oct 8, 2015
    Messages:
    49
    Likes Received:
    16
    Yes, you're right. If it's linked to the character adopts the character's z axis, then make two objects, link them together and place both objects in front of the character in the scene, I don't know if this would work for your game, but it would work if you want the object to be behind another object. Once you link objects in buildbox, it seems to bring them in front of other objects in preview mode, at least for me it does.
     
  11. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Wouldn't the character then be behind the object too?
     
  12. steverha

    steverha Boxer

    Joined:
    Oct 8, 2015
    Messages:
    49
    Likes Received:
    16
    Yes, there lies the problem unfortunately. I'm not sure of a way around that, you could mess around with the layers and maybe get something to work using the linked objects trick though. I haven't experimented much with it, but let me know if you figure it out!
     
  13. FranciscoBala

    FranciscoBala Avid Boxer

    Joined:
    Feb 25, 2017
    Messages:
    161
    Likes Received:
    72
    Last edited: Mar 31, 2017
  14. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Nice :D Thank you. I'll look into it :)
     
    Last edited: Apr 11, 2018
    FranciscoBala likes this.
  15. Mr Goodcat

    Mr Goodcat Boxer

    Joined:
    Jun 10, 2017
    Messages:
    98
    Likes Received:
    28
    Did you manage to solve this?
     
  16. Jayant Mall

    Jayant Mall Boxer

    Joined:
    Nov 5, 2018
    Messages:
    32
    Likes Received:
    2
    I was wondering about the same thing... Like having a Sun / Moon in the horizon that stays stationary...
     

Share This Page