KamiFightingSpirit Posted March 19, 2020 Share Posted March 19, 2020 (edited) Hello! I am back yet again. I have a quick question on Pixi-layers: https://github.com/pixijs/pixi-layers I am building a solar system and want the planets to orbit a sun at it's center. As such, when a planet has a lower y-value, I want it to automatically be placed in the background (have a lower z-value) and when it has a higher y-value I want it to be placed in the front. I saw this example: http://scottmcdonnell.github.io/pixi-examples/index.html?s=display&f=zorder.js&title=Z-order&plugins=pixi-display However, this is event driven. I want it to be constantly checking the planet's y-position and update the z-index accordingly relative to one another. Will pixi-layers work if it's attached to the ticker? Is there a way to do this without pixi-layers that would be simpler? Edited March 19, 2020 by KamiFightingSpirit superfluous information Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.