I am having this issue where the player’s gun appears to be in a layer above the player (or the platforms in the scene), while they’re both at the “Base” Layer!
I need the gun to be hidden by the platform when falling through it, alongside the player OR both of them showing on top of the platform, not being separated the way they are.
Could you explain to me what this is doing, specifically? I’m still a noob when it comes to this type of coding.
What if I wanted both objects to be above the platform?
nevermind, i figured that out. just do the “ZOrder” thing, but for both player and gun and change the subject of the ZOrder thing from “Player” to “JumpTru” (or whatever one’s jump-tru platform is called)
BUT by shadows and by how other soldiers are standing we can totally tell there is more than 1 soldier in center
They are just behind 1st soldier or to be accurate 1st soldier closest to us is obstructing the view
We are calling this Z order
Soldier you see in center have highest z order and that is why we see him first
In real word there is no way to change Z order it is set automatically by distance and position or to be precise perspective
In gdevelop not enough you can set it manually via events like you just did
But also each object you place gets +1 z order to last used z order
So imagine you place 2 objects one have z order 1 other have z order 2
Now you place another and it will get Z order 3
BUT imagine you change 1st object Z order to 15
And now next object you will place gonna get Z order 16
Where easy fix to your issue would be simply to set player Z order to 1
Gun to 2
And all platforms to 0 or to 3 depending should they be behind them or in front of