I’m using this extension to make the weapon shake in the player’s hand when shooting, but I’m having problems with the weapon’s z-order, as it shifts from above the player to below.
I also set the z-order to skin.zorder+1 when the weapon is sticking to the player.
Anyone having the same problem?
Do you have just 1 skin object and is it’s Zorder higher than player?
Playerhitbox… Skin… Weapon
Is the player or any object using the Y sort behavior.
The order is player hitbox zorder = 0 - skin z order = 1 - army order skin.zorder+1 so 2. The y sort behavior is applied to skins and weapons. The problem arises when I enable weapon vibration to give a nicer shooting effect.
If they have the y sort then it sounds like it could be changing the Z order when the object is shaken bc the Y value is changed.
You could set the Z order manually or maybe modify the origin or center point so even if it’s shaken , the y value would be higher.
I don’t have the time to test anything. Maybe someone else can be more specific.
that’s strange…it works correctly after updating the extensions, something must have changed
Luckily I had an old project with the extension version not updated and now it seems to work

