Problem of overlay between game object (SOLVED)

Hi everyone, :smiley:
I try when i move to up the card (visually), but it stay at the same height. Why and how resolve the problem ? :thinking:

--in update when i click on card
if myMouse.acti and myMouse.click then
	local posi = myMouse.posi
	posi.z = .7
	go.set_position(posi, mySelectCard.id)
end 
...
--when mouse is release
local posi = myMouse.posi
posi.z = .2
go.set_position(posi, mySelectCard.id)

Thanks for advance !!!

I guess the white block .z is still lower than the object inside other blocks.
You can sum up to see
Check this component-z-value

2 Likes

Ah yes, you right !!!
I didn’t see it like that.

I just change card z by 0 and it works.
Thanks !!! :grin:

1 Like