Object infront of a character

  • #1, z elecThursday, 16. March 2017, 11:24 hodinky 8 years ago
    Hey there,

    i'm pretty confused how it would be possible to place Objects in front of a character.

    Thanks for your Help.

    Fanoušek fóra

    109 Posts


  • #2, z sebastianThursday, 16. March 2017, 11:43 hodinky 8 years ago
    there is a value for object center in each objects properties. It indicates the y-coordinate in which a character should be drawed behind (char-y higher than object center) or above (char-y lower than object center). 

    Also you should keep in mind the order of your objects in the object list. it tells the engine which object get drawn above each other. 

    kind regards
    Sebastian 

    Kapitán

    2346 Posts

  • #3, z F_KalThursday, 16. March 2017, 11:49 hodinky 8 years ago
    For a start the "object center" property of the object should be set and placed lower on the screen compared to the character (lower, translates into closer to the camera) - if you wish to make it always stay on top of everything, you can put it as further down as possible (I think you are even allowed to have it below the scene image by a couple of pixels) 
    (see the first image)

    the tricky part (that I didn't realize at first), is that you also have to set correctly the order of object inside the list of the scene objects (see the second image)! The simplest way (given that you have defined the object center already), is to press the the yellow up-down-arrows icon as seen on the second image!

    Fanoušek fóra

    107 Posts