Adding New Surface Layers
On your surface, ensure it has got a Collider assigned, as well as a Layer.
All the layers that the Player detects as walkable surfaces are defined under Player > PlayerMovement > Assignables > WhatIsGround

When you install the package, all of this is already set up for you, but what happens if you want to add a new layer that is not brought by the asset? The process is very simple!
First, you want to add a new layer. Go to the top right corner and click on Layer, then click on AddLayer. Here, add a layer, we added Mud.

After that, make sure your layer is included in the whatIsGround layermask.
Just like that, Platformer Engine will detect the surface as a walkable area. However, what happens with footsteps? In this asset you can customize everything related to footsteps, from steps sfx and vfx to landing sfx and vfx, as well as the volume to play the sounds. For that go to the Player – Player Movement – Others – Steps. Here you will see an array with an entry for each layer.

Create a new entry and ensure that “name” matches the exact same name as the Layer we just created. Once you make sure that is properly set up, you can adjust the other variables as you like!

Last updated