Hi there, I had two objects, A and B. A is on top of B, but I wanted B to be on top of A, to do that, I tried moving B on top of A on Z Order Bar, but when I test the layout, it din work.
Then, I tried creating instance variable for both of the object,
A's instance variable : sortorder = 2
B's instance variable : sortorder = 1
On event sheet,
On A created, System Sort A Z order by sortorder
On B created, System Sort B Z order by sortorder
But it din work also, help please..
You can simply create an event, at start of layout -> Z Order, Move To Object. Then you choose if you want that object above or below the other one.
Changing them in the Z-order bar should have worked just fine, unless you're creating B first, then A in your events.
The last object created will always be on top, so you'll have to send it to back or re-order it using code if that's what you want.
Develop games in your browser. Powerful, performant & highly capable.
You need make a Family and sort by event. here the example and capx file.
he the capx file:
https://drive.google.com/file/d/0B9uHUU ... sp=sharing
Whao, thanks guys! I have tried all of the method, it works great!