Isometric Games - Object Layer Ordering

You're viewing a single comment in a conversation. View all the comments
  • 4 Comments

  • Order by
  • Nice tutorial, my suggestions:

    1. Don't check every tick, every 3 to 6 ticks should be ok. Only check for objects on screen.

    2. Set the objects collision box not for the hole sprite, just for the bottom part like you did with the player. This way he can be behind the objects to a certain degree.

    3. I wouldn't shuffle objects between layers as soon as free walking enemies join the party. Just do everything on the same layer and use the z-order-condition by y-position (every 6 ticks or so for objects on screen)