• moddhayward

    How can I control the visual (z) ordering or depth of layers to move one to the front when touched? It must be obvious, but I couldn't seem to find it in the documentation. Many thanks!

    posted in Pythonista read more
  • moddhayward

    ccc, that wasn't obvious but fair enough! :)

    I actually wanted a pretty dynamic environment/game. Even if I 'only change it when it needs changing' I still have to keep track of all z heights and run a chunk of code to decide IF a change has happened, between any of the layers, 60 times a second. This is some distance from simply passing a z height to the canvas, and no doubt considerably slower.

    Thank you for all your help though, at least I know the limitations now.

    posted in Pythonista read more
  • moddhayward

    JonB, yes it's in a scene. I will try your suggestion re adding and removing all the layers, but this seems a bit much in any kind of dynamic environment with a reasonable number of layers doesn't it?! :/

    ccc. I'm not clear what you are pointing at? Please tell me which bit of the documentation controls the layer 'height' (z coordinate). Coz I can't see it. As per original post, I HAVE read the docs...

    Surely I can't be the first person to have this issue?! :)


    edit

    I have tried remove_layer() and add_layer() and yes, this will bring a chosen layer to the front of a scene.

    Is this really the only way to do it through? I have to keep track of all the layers z heights, and at each redraw every single layer is removed, and then they're all added back, one by one, in the right order? 60 times a second?! :/

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!