Overlay bug

Discussion in 'Technical Discussion' started by Kadri246, May 14, 2016.

  1. Kadri246

    Kadri246 Avid Boxer

    Joined:
    Mar 1, 2016
    Messages:
    243
    Likes Received:
    77
    Overlay animation behavior with actions doesn't place the animation in front the character, it places the animation behind the character.
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    move your animation forward
     
  3. Kadri246

    Kadri246 Avid Boxer

    Joined:
    Mar 1, 2016
    Messages:
    243
    Likes Received:
    77
    Thanks @heathclose... For the love of my cat this bugged me out for weeks.
     
  4. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    put the cat in the game credits
     
  5. Kadri246

    Kadri246 Avid Boxer

    Joined:
    Mar 1, 2016
    Messages:
    243
    Likes Received:
    77
    lol... I def will, thanks to you
     
  6. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    What do you mean with move your animation forward? The action?

    There seems to be a bug if your action is connected to a platform or physical object. The animation always is behind this particular object. Never on top, much less on top of the character. Any solution?
     
  7. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    instead of putting the animation at 0,0... moving it forward to 100,0 or something
     
  8. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I'm completely lost. Where do you change this value?
     
  9. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
  10. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    But this are X and Y values, no Z axis there... :(
     
  11. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    no that won't fix a layering issue, but that is wher you "move your animation forward" for the issue original poster was having... you're having an issue with layering?
     
  12. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Yes. :D My issue is with layering which I think is the same or similar issue the OP has. He is talking about overlay, in front and behind.
     
  13. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,546
    The overlay should appear at the same Z value as the action.
     
  14. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    hmmm.... i was thinking side scroller this whole time and "in front of" or "behind" the character made all the sense in the world, and I assumed that's what op meant because they seemed to react as if it worked.... that all made sense to me... but if @Kadri246 was talking about a layer behind or a layer in front... then I would think changing the order it is in the list of the scene would fix it, no?
     
  15. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Yes. Normally it would, but not if the action is connected to another object. It takes automatically the Z value of the object but even worse, it always appears behind the object, not in front. I have set up an action that has physical objects in the action animation, they all fall behind the platform they are attached to. So if I would have a moving wall, for example, and on top of it an action attached to it because I want the action to move together with the wall, the action animation never would been seen. It just would play behind the wall.
     
  16. Kadri246

    Kadri246 Avid Boxer

    Joined:
    Mar 1, 2016
    Messages:
    243
    Likes Received:
    77
    What worked for me was to adjust the ordering of the character and action on the Game play layer. If you put the action directly above the character, then it will appear over the character.

    1 is action, therefore the action animation appears over the character.
    Thanks to @heathclose

    Screen Shot 2016-05-18 at 11.45.46 AM.png
     
  17. MAC420

    MAC420 Avid Boxer

    Joined:
    May 2, 2018
    Messages:
    348
    Likes Received:
    156
    Best thread I've seen on this topic... but, it still didn't help me. I have an itembox on screen that when you touch it the strike action is activated but the animation is behind charecter. I've done everything here to get it to be infront when picked up in game, but the itembox one just won't work. Can we just not make that work???
     
  18. Jesse O'Brien

    Jesse O'Brien Boxer

    Joined:
    Jan 15, 2020
    Messages:
    10
    Likes Received:
    0
    My layer order in BB3 seems completely buggy. No matter what layer order my elements are arranged in, my character is always on top. It's at the very bottom of the left panel, and changing the Z position doesn't work. Seems like a bug? Or is there some simple thing that would prevent depth order?
     
  19. Vlad-NY

    Vlad-NY Serious Boxer

    Joined:
    Jul 21, 2018
    Messages:
    608
    Likes Received:
    361
    In buildbox 3 the order in the hierarchy of the objects does not count, you can sort them by using x, z or y values based on what direction you move to sort them (positive (close to camera witch by default is set to be on 10) and negative to move to background) I use float numbers for ordering like 1.01 to 1.99 to order objects in 3d)
     
  20. Jesse O'Brien

    Jesse O'Brien Boxer

    Joined:
    Jan 15, 2020
    Messages:
    10
    Likes Received:
    0
    That was really helpful Vlad-NY, helped me get closer...I tested this with a simple 3D ball for my platformer and the z value works. However, the problem seems to be in my animation texture. I have a PNG animation instead of my 3D mesh, and no matter where the character is in z space, the PNG animation always looks foregrounded. Does that trigger any ideas?
     

Share This Page