Placing objects in a Terrain Layer

You may have noticed that your character or other game object was squished when you placed it into your level. This is because you’ve placed it in a Terrain Layer.

game-object-terrain-1

Don’t worry – just make sure you place game objects on a regular Layer (this applies to characters, or anything else interactive).

game-object-terrain-2

Terrain layers are a bit different to regular layers. Anything that is placed in a terrain layer will be resized to fit the terrain tilemap grid, and anything in that grid becomes solid and won’t move – this makes calculating collisions in your game far easier, and your game will run smoother.

Note: if the game object is animated, it will appear in terrain with the last frame from the last animation sequence (for characters this usually makes them appear as lying down).

 If you want your game objects to become terrain, then place them in a terrain layer. Otherwise, place them in a regular layer.