Character Visible Through Foreground Objects?

Discussion in 'How Can I...?' started by danabot, Aug 25, 2020.

  1. danabot

    danabot Boxer

    Joined:
    Apr 2, 2018
    Messages:
    52
    Likes Received:
    3
    I have a 3D platformer in 2D mode. My character is visible through foreground objects as he passes behind them?
     
  2. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    Use the layers. The object that is closer to the top of the hierarchy will be closer to the camera. So place them accordingly.
     
  3. danabot

    danabot Boxer

    Joined:
    Apr 2, 2018
    Messages:
    52
    Likes Received:
    3
    Thanks for the input. I've done that. It is correct in the scene editor, but the character is still visible in front, in the gameplay?
     
  4. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    Could you show us the issue? It might help to be able to assist you.
     
  5. danabot

    danabot Boxer

    Joined:
    Apr 2, 2018
    Messages:
    52
    Likes Received:
    3
    Here are three screen shots. In ONE, you see the stack, in TWO you see the scene editor and the character can move behind the foreground object. In THREE you see the gameplay and the character is now in front of the foreground object?
     
  6. Josh (Nology Games)

    Josh (Nology Games) Avid Boxer

    Joined:
    Nov 27, 2017
    Messages:
    200
    Likes Received:
    155
    I don’t see any screenshots. Could you try posting them again?
     
  7. danabot

    danabot Boxer

    Joined:
    Apr 2, 2018
    Messages:
    52
    Likes Received:
    3
  8. Hue Buildbox

    Hue Buildbox Administrator Staff Member

    Joined:
    May 11, 2017
    Messages:
    457
    Likes Received:
    210
  9. danabot

    danabot Boxer

    Joined:
    Apr 2, 2018
    Messages:
    52
    Likes Received:
    3
    I did that. If you look at the second attachment, the character is behind the foreground object but if I test the game, the character shows through?
     
  10. deyren

    deyren Boxer

    Joined:
    Jul 26, 2018
    Messages:
    59
    Likes Received:
    22
    I finally found the character thanks to your tip, thank you so much !
     
    Last edited: Feb 13, 2022

Share This Page