EntityOrder

Blitz3D Forums/Blitz3D Programming/EntityOrder

Odd is all I can say. EntityOrder is very very simple, if you want something in front then give it a higher number. If you want it behind then give it a lower number. So if 0 is normal order then 1 is in front and -1 is behind. Why you would want to give different entities the same order is beyond me as you surely know what should be in front of what?

So, if you want to swap in different skyspheres you could:

a) give the visible sphere a higher order than others like say -1 and then -2 for hidden spheres

b) hide all skyspheres apart from the visible one using HideEntity

c) apply the correct texture to 1 sphere dependent on your game mechanics using EntityTexture.