I am doing a menu and I want to create a selector of this menu and for doing that, I create a menu that contains many class extends of actor to create a list of actors. I want to create a selector for this menu where a pointer select the current actor, but my pointer is in the menu and each actor are draw over the menu but i would like to put the selector draw on each element. So how do I define a actor to be draw over an other actor. I have thought it would be the Z index but I only get this type of error when trying to change it :
[Fatal] : TypeError: Cannot read property 'cleanupDrawTree' of null excalibur.js:4909
at b.setZIndex (excalibur.js:14002)
at b.set [as z] (excalibur.js:13983)
I dont post code but if it need to be clearer, I will post it.