Tips and Tricks - SickheadGames/AdventureKit GitHub Wiki

Here is a list of miscellaneous tips and tricks we've encountered while working on the Adventure Kit.

  • We highly recommend that you do not put your sprites on a low layer like 0 or 1. For example place your Y-sorted sprites on layer 10 (this is what we do in the demo). This allows you room within the layers to force things above or below the sprites.

  • Don't use sort points on really flat things. If something should always appear underneath the sprites, then place it on the layer below the sprites.

  • Look out for sort points with particle effects. There is a bug in TGB 1.1.1 where particle effects used in multiple locations in your layer will overwrite each others sort point.

  • If you're having issues getting something to sort properly, then think about slightly altering your design. Move an object with collision in the way so that they player can't walk to that point.

  • Disable collisions if your scene object doesn't use it. If your object doesn't need to be notified of collisions, like the majority of objects in your scene like walls, fences, or trees, don't check Receive Collisions. This can gain you alot of performance.

  • Be creative with your sprite usage. When you slightly misalign or use a different scale on adjacent objects it tends to make things look more natural. You don't have to place sprites exactly or orderly to make it look good.