#small objects drawn over the player

12 messages · Page 1 of 1 (latest)

crude bane
#

Hi, when i stand infront of larger objects than the player they are drawn corectly behind the player, but with small objects they are drawn over the player, all z-indexing is the same at 0, anyone has the same issue ?

indigo cosmos
#

Show us your scene tree.

#

By default, nodes further down in the scene tree are rendered above node further up.

crude bane
#

Moved the player node to the bottom of the scene tree still the same result

indigo cosmos
#

Again, show us your scene tree.

crude bane
#

Also creating a new instance of player and the small object dont solve it

indigo cosmos
#

Can you tell us what the "small objects" and the "larger objects" are?

crude bane
#

Bush,coconut_tree are the larger ones and the coal and flower spawner the small ones

#

Bush has the same size as the player, the tree is bigger(3 squares in height, player 2), flower and coal 1 square in height

indigo cosmos
#

The spawner nodes are just Position2D nodes, right? In the editor, the gizmos are supposed to be rendered above everything.

Is the actual problem that the coconuts and flowers that you spawn are rendered above the player? In that case, that's most likely due to them being added as a child to world2 and not to Pickables.

crude bane
#

The coal and flower are being rendered over the player even when i put them in pickables