Forum




Is it possible to change the Z-index of images?
3 replies



CS2D always draws newer images on top of older ones.
tween_alpha only changes transparency, so it won’t really help with layering — it can only make one image invisible while showing the other.
So if you need to swap which one is on top while keeping both visible, you'd have to recreate one of them (freeimage + image() again).

You could make the recreation easier by using a framework with built in order.
imagezindex(id, index). Doing this would open up many possibilities for optimizing image usage.



