#Z-index / Draw order across platforms?

1 messages · Page 1 of 1 (latest)

pure ivy
#

To optimize drawing, I’m drawing multiple sprites in one draw event. Can someone confirm that the sprites will appear on top of eachother in the same order in all platforms?

For example, if I am drawing the following, will the grass always show up on top of the house? Will the mailbox always show up in front of the grass?
draw_sprite(spr_house)
draw_sprite(spr_grass)
draw_sprite(spr_mailbox)

harsh lion
#

Yes, in fact that is the absolute most reliable way to ensure sprites draw in a specific order, since code lines running in order is fundamental to the engine